WordPress.org

Make WordPress Core

Changeset 18571


Ignore:
Timestamp:
08/19/11 14:47:45 (3 years ago)
Author:
dd32
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/class-wp-editor.php

    r18570 r18571  
    295295                if ( ! empty( $editor_styles ) && is_array( $editor_styles ) ) { 
    296296                    $mce_css = array(); 
     297                    $editor_styles = array_unique($editor_styles); 
    297298                    $style_uri = get_stylesheet_directory_uri(); 
    298299                    if ( ! is_child_theme() ) { 
Note: See TracChangeset for help on using the changeset viewer.