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: http://core.svn.wordpress.org/trunk@21114 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
nacin 2012-06-25 20:45:05 +00:00
parent b84c4c3686
commit 25183988dc

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] = '';
}
}
}