]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-admin/load-styles.php
WordPress 3.4
[autoinstalls/wordpress.git] / wp-admin / load-styles.php
index be781e299be2827ff231313c265a55ad40bb73ab..bdacc21ce364d2f0efb0ca664d6fcc16956368fc 100644 (file)
@@ -21,7 +21,6 @@ function __() {}
  */
 function _x() {}
 
-
 /**
  * @ignore
  */
@@ -125,7 +124,12 @@ foreach( $load as $handle ) {
                $content .= get_file($rtl_path) . "\n";
        }
 
-       $out .= str_replace( '../images/', 'images/', $content );
+       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');