Skip to content

Instantly share code, notes, and snippets.

@uabaluua
Created March 23, 2017 02:38
Show Gist options
  • Save uabaluua/8c41b249d0e10d6a55057698c20ec0d7 to your computer and use it in GitHub Desktop.
Save uabaluua/8c41b249d0e10d6a55057698c20ec0d7 to your computer and use it in GitHub Desktop.
get_template_directory_uri() returns http instead of https on SSL site
//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