Created
July 23, 2015 16:42
-
-
Save wookiecooking/b314455526d254a9eac6 to your computer and use it in GitHub Desktop.
WordPress Chrome Fix
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
Plugin Name: Chrome 44 SSL Fix | |
Description: Fixes the problem when Chrome v.44 forces SSL on WordPress Sites. Remove the plugin when Chrome v.45 is out on 07.27.2015 | |
Version: 1.0 | |
*/ | |
// Prevent direct access to the file | |
if ( ! defined( 'ABSPATH' ) ) exit; | |
if ( ! class_exists( 'Chrome_44_SSL_Fix' ) ) : | |
class Chrome_44_SSL_Fix { | |
function __construct() { | |
// Temporary Chrome 44 fix | |
$_SERVER['HTTPS'] = false; | |
} | |
} | |
new Chrome_44_SSL_Fix; | |
endif; | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment