Make WordPress Core

Changeset 18572


Ignore:
Timestamp:
08/19/2011 02:56:34 PM (15 years ago)
Author:
dd32
Message:

Load all Parent theme stylesheets before Child theme stylesheets in the TinyMCE Editor. props SergeyBiryukov. Fixes #18457

File:
1 edited

Legend:

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

    r18571 r18572  
    304304                                                $template_uri = get_template_directory_uri();
    305305                                                $template_dir = get_template_directory();
     306
    306307                                                foreach ( $editor_styles as $file ) {
    307308                                                        if ( file_exists( "$template_dir/$file" ) )
    308309                                                                $mce_css[] = "$template_uri/$file";
     310                                                }
     311
     312                                                foreach ( $editor_styles as $file ) {
    309313                                                        if ( file_exists( "$style_dir/$file" ) )
    310314                                                                $mce_css[] = "$style_uri/$file";
Note: See TracChangeset for help on using the changeset viewer.