Created
November 10, 2011 11:18
-
-
Save anthonysomerset/1354635 to your computer and use it in GitHub Desktop.
wordpress theme function to disable CDN loading on SSL pages (requires w3 total cache plugin)
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
| add_action('wp_head','nocdn_on_ssl_page'); | |
| function nocdn_on_ssl_page() { | |
| if ($_SERVER['HTTPS'] == "on") { | |
| define('DONOTCDN', true); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
No longer needed :)