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
This commit is contained in:
dd32 2011-08-19 14:56:34 +00:00
parent 8c51c16803
commit cb90791f8e
1 changed files with 4 additions and 0 deletions

View File

@ -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";
}