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:
parent
b84c4c3686
commit
25183988dc
|
@ -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] = '';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue