From cb90791f8e9d2d721dcd63fda50e4a31b75970a4 Mon Sep 17 00:00:00 2001 From: dd32 Date: Fri, 19 Aug 2011 14:56:34 +0000 Subject: [PATCH] Load all Parent theme stylesheets before Child theme stylesheets in the TinyMCE Editor. props SergeyBiryukov. Fixes #18457 git-svn-id: http://svn.automattic.com/wordpress/trunk@18572 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/class-wp-editor.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/wp-includes/class-wp-editor.php b/wp-includes/class-wp-editor.php index fb8ce53493..15f188827a 100644 --- a/wp-includes/class-wp-editor.php +++ b/wp-includes/class-wp-editor.php @@ -303,9 +303,13 @@ class WP_Editor { $style_dir = get_stylesheet_directory(); $template_uri = get_template_directory_uri(); $template_dir = get_template_directory(); + foreach ( $editor_styles as $file ) { if ( file_exists( "$template_dir/$file" ) ) $mce_css[] = "$template_uri/$file"; + } + + foreach ( $editor_styles as $file ) { if ( file_exists( "$style_dir/$file" ) ) $mce_css[] = "$style_uri/$file"; }