Created
January 19, 2015 21:31
-
-
Save johnmontfx/2be28f980f40e124fd54 to your computer and use it in GitHub Desktop.
Patch shoestrap-extras includes/cmf/init.php file to better deal with SSL admin
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
--- /Users/johnmont/Downloads/shoestrap-extras-pack/includes/cmf/init.php 2015-01-19 13:30:17.000000000 -0800 | |
+++ /Users/johnmont/Downloads/shoestrap-extras-pack/includes/cmf/init.new.php 2015-01-19 13:27:48.000000000 -0800 | |
@@ -889,13 +889,13 @@ | |
if ( strtoupper( substr( PHP_OS, 0, 3 ) ) === 'WIN' ) { | |
// Windows | |
$content_dir = str_replace( '/', DIRECTORY_SEPARATOR, WP_CONTENT_DIR ); | |
- $content_url = str_replace( $content_dir, WP_CONTENT_URL, dirname(__FILE__) ); | |
+ $content_url = str_replace( $content_dir, content_url(), dirname(__FILE__) ); | |
$cmb_url = str_replace( DIRECTORY_SEPARATOR, '/', $content_url ); | |
} else { | |
$cmb_url = str_replace( | |
array(WP_CONTENT_DIR, WP_PLUGIN_DIR), | |
- array(WP_CONTENT_URL, WP_PLUGIN_URL), | |
+ array( content_url() , plugins_url() ), | |
dirname( __FILE__ ) | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment