Created
January 3, 2013 18:06
-
-
Save WebEndevSnippets/4445464 to your computer and use it in GitHub Desktop.
WordPress: Fixes Issue with CMB on Windows Local
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
/** Fixes Issue with CMB on Windows Local */ | |
add_filter( 'cmb_meta_box_url', 'we_windows_cmb_meta_box_url' ); | |
function we_windows_cmb_meta_box_url( $url ){ | |
return trailingslashit( str_replace( '\\', '/', str_replace( str_replace( '/', '\\', WP_CONTENT_DIR ), WP_CONTENT_URL, $url ) ) ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment