Created
March 23, 2017 02:38
-
-
Save uabaluua/8c41b249d0e10d6a55057698c20ec0d7 to your computer and use it in GitHub Desktop.
get_template_directory_uri() returns http instead of https on SSL site
This file contains 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
//wp-config | |
define('FORCE_SSL_ADMIN', true); | |
if (strpos($_SERVER['HTTP_X_FORWARDED_PROTO'], 'https') !== false) | |
{ $_SERVER['HTTPS']='on'; } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment