From 54b87b65313bd3039933688335e496ff5c4f67ba Mon Sep 17 00:00:00 2001 From: Dion Hulse 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: https://develop.svn.wordpress.org/trunk@18572 602fd350-edb4-49c9-b593-d223f7449a82 --- 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"; }