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:
parent
9734668734
commit
67704f12f2
|
@ -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 )
|
||||
|
|
Loading…
Reference in New Issue