From 8c51c16803d21d4bce19331ace4381555fc684ff Mon Sep 17 00:00:00 2001 From: dd32 Date: Fri, 19 Aug 2011 14:47:45 +0000 Subject: [PATCH] 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 --- wp-includes/class-wp-editor.php | 1 + 1 file changed, 1 insertion(+) diff --git a/wp-includes/class-wp-editor.php b/wp-includes/class-wp-editor.php index ca2fe706bc..fb8ce53493 100644 --- a/wp-includes/class-wp-editor.php +++ b/wp-includes/class-wp-editor.php @@ -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 )