Allow add_editor_style() to load a child theme's editor style when the parent theme's style exists for the same filename. props SergeyBiryukov. see #21026 for trunk.

git-svn-id: https://develop.svn.wordpress.org/trunk@21114 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin 2012-06-25 20:45:05 +00:00
parent 9e30b38e96
commit 95159b0788
1 changed files with 1 additions and 3 deletions

View File

@ -335,10 +335,8 @@ final class _WP_Editors {
$template_dir = get_template_directory();
foreach ( $editor_styles as $key => $file ) {
if ( $file && file_exists( "$template_dir/$file" ) ) {
if ( $file && file_exists( "$template_dir/$file" ) )
$mce_css[] = "$template_uri/$file";
$editor_styles[$key] = '';
}
}
}