Fix editor icons when no SCRIPT_DEBUG, see #17144

git-svn-id: https://develop.svn.wordpress.org/trunk@18503 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Ozz
2011-08-03 23:56:21 +00:00
parent 53122aafe5
commit 5b4ac17cc5
6 changed files with 18 additions and 20 deletions
+5 -3
View File
@@ -125,10 +125,12 @@ foreach( $load as $handle ) {
$content .= get_file($rtl_path) . "\n";
}
if ( strpos( $style->src, '/wp-includes/css/' ) === 0 )
$out .= str_replace( '../images/', '../wp-includes/images/', $content );
else
if ( strpos( $style->src, '/wp-includes/css/' ) === 0 ) {
$content = str_replace( '../images/', '../wp-includes/images/', $content );
$out .= str_replace( '../js/tinymce/', '../wp-includes/js/tinymce/', $content );
} else {
$out .= str_replace( '../images/', 'images/', $content );
}
}
header('Content-Type: text/css');