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

git-svn-id: https://develop.svn.wordpress.org/trunk@18571 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Dion Hulse 2011-08-19 14:47:45 +00:00
parent 9734668734
commit 67704f12f2
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 )