Only include extra TinyMCE stylesheets once. props SergeyBiryukov. Fixes #18456

git-svn-id: http://svn.automattic.com/wordpress/trunk@18571 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
dd32 2011-08-19 14:47:45 +00:00
parent 97ff3b4c7a
commit 8c51c16803
1 changed files with 1 additions and 0 deletions

View File

@ -294,6 +294,7 @@ class WP_Editor {
// load editor_style.css if the current theme supports it
if ( ! empty( $editor_styles ) && is_array( $editor_styles ) ) {
$mce_css = array();
$editor_styles = array_unique($editor_styles);
$style_uri = get_stylesheet_directory_uri();
if ( ! is_child_theme() ) {
foreach ( $editor_styles as $file )