Skip to content

Instantly share code, notes, and snippets.

@wookiecooking
Created July 23, 2015 16:42
Show Gist options
  • Save wookiecooking/b314455526d254a9eac6 to your computer and use it in GitHub Desktop.
Save wookiecooking/b314455526d254a9eac6 to your computer and use it in GitHub Desktop.
WordPress Chrome Fix
<?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