Skip to content

Instantly share code, notes, and snippets.

@johnmontfx
Created January 19, 2015 21:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save johnmontfx/2be28f980f40e124fd54 to your computer and use it in GitHub Desktop.
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
--- /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