Plugin Directory

Changeset 1812237


Ignore:
Timestamp:
01/30/2018 09:05:09 PM (8 years ago)
Author:
brianbrey
Message:

Add update to fix php notice

Location:
easy-social-share-buttons/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • easy-social-share-buttons/trunk/easy-social-share-buttons.php

    r1800851 r1812237  
    22/*
    33 * Plugin Name: Easy Social Share Buttons
    4  * Version: 1.4.3
     4 * Version: 1.4.4
    55 * Plugin URI: http://www.idiom.co/
    66 * Description: Easily add social sharing buttons to your posts and images without slowing down your site with unnecessary javascript and image files.
  • easy-social-share-buttons/trunk/includes/class-easy-social-share-buttons.php

    r1800851 r1812237  
    103103        $this->script_suffix = defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ? '' : '.min';
    104104
    105         $this->url_protocol = $_SERVER['HTTP_X_FORWARDED_PROTO'];
    106 
    107         if ( ! in_array( $this->url_protocol, array( 'http', 'https' ) ) ) {
     105        if (isset($_SERVER['HTTPS']) &&
     106            ($_SERVER['HTTPS'] == 'on' || $_SERVER['HTTPS'] == 1) ||
     107            isset($_SERVER['HTTP_X_FORWARDED_PROTO']) &&
     108            $_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https') {
     109            $this->url_protocol = 'https';
     110        } else {
    108111            $this->url_protocol = 'http';
    109112        }
  • easy-social-share-buttons/trunk/readme.txt

    r1800851 r1812237  
    44Requires at least: 3.9
    55Tested up to: 4.5.2
    6 Stable tag: 1.4.3
     6Stable tag: 1.4.4
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    4343
    4444== Changelog ==
     45
     46= 1.4.4 =
     47* 2018-01-30
     48* Improved check for url protocol to prevent PHP notices
    4549
    4650= 1.4.3 =
Note: See TracChangeset for help on using the changeset viewer.