From 95159b0788ad6b1fc6d9248351bcad11a20ac8b3 Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Mon, 25 Jun 2012 20:45:05 +0000 Subject: [PATCH] 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 --- wp-includes/class-wp-editor.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/wp-includes/class-wp-editor.php b/wp-includes/class-wp-editor.php index 04bb7c91a5..7aa9aff706 100644 --- a/wp-includes/class-wp-editor.php +++ b/wp-includes/class-wp-editor.php @@ -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] = ''; - } } }