Created
June 16, 2014 13:59
-
-
Save Pross/af696c0b04e5db9109e9 to your computer and use it in GitHub Desktop.
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
<?php // only add this if there isnt one already, its only here to make highlighting work | |
add_filter( 'pless_vars', 'make_cdn_vars' ); | |
function make_cdn_vars( $vars ) { | |
$vars['plSectionsRoot'] = str_replace( 'www', 'cdn', $vars['plSectionsRoot'] ); | |
$vars['plRoot'] = str_replace( 'www', 'cdn', $vars['plRoot'] ); | |
$vars['plCrossRoot'] = str_replace( 'www', 'cdn', $vars['plCrossRoot'] ); | |
return $vars; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment