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:
parent
97ff3b4c7a
commit
8c51c16803
|
@ -294,6 +294,7 @@ class WP_Editor {
|
||||||
// load editor_style.css if the current theme supports it
|
// load editor_style.css if the current theme supports it
|
||||||
if ( ! empty( $editor_styles ) && is_array( $editor_styles ) ) {
|
if ( ! empty( $editor_styles ) && is_array( $editor_styles ) ) {
|
||||||
$mce_css = array();
|
$mce_css = array();
|
||||||
|
$editor_styles = array_unique($editor_styles);
|
||||||
$style_uri = get_stylesheet_directory_uri();
|
$style_uri = get_stylesheet_directory_uri();
|
||||||
if ( ! is_child_theme() ) {
|
if ( ! is_child_theme() ) {
|
||||||
foreach ( $editor_styles as $file )
|
foreach ( $editor_styles as $file )
|
||||||
|
|
Loading…
Reference in New Issue