Created
November 4, 2012 17:22
-
-
Save WebEndevSnippets/4012671 to your computer and use it in GitHub Desktop.
Plugin: Disable W3 Total Cache CDN on HTPS pages only (for SSL)
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
/** | |
* Disable W3 Total Cache CDN on HTTPS pages only (for SSL) | |
*/ | |
add_action('wp_head','we_nocdn_on_ssl_page'); | |
function we_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
This function is no longer needed, FYI. The functionality has been exposed through the UI ;)