Changeset 1812237
- Timestamp:
- 01/30/2018 09:05:09 PM (8 years ago)
- Location:
- easy-social-share-buttons/trunk
- Files:
-
- 3 edited
-
easy-social-share-buttons.php (modified) (1 diff)
-
includes/class-easy-social-share-buttons.php (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
easy-social-share-buttons/trunk/easy-social-share-buttons.php
r1800851 r1812237 2 2 /* 3 3 * Plugin Name: Easy Social Share Buttons 4 * Version: 1.4. 34 * Version: 1.4.4 5 5 * Plugin URI: http://www.idiom.co/ 6 6 * 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 103 103 $this->script_suffix = defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ? '' : '.min'; 104 104 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 { 108 111 $this->url_protocol = 'http'; 109 112 } -
easy-social-share-buttons/trunk/readme.txt
r1800851 r1812237 4 4 Requires at least: 3.9 5 5 Tested up to: 4.5.2 6 Stable tag: 1.4. 36 Stable tag: 1.4.4 7 7 License: GPLv2 or later 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 43 43 44 44 == Changelog == 45 46 = 1.4.4 = 47 * 2018-01-30 48 * Improved check for url protocol to prevent PHP notices 45 49 46 50 = 1.4.3 =
Note: See TracChangeset
for help on using the changeset viewer.