Make WordPress Core


Ignore:
Timestamp:
06/25/2012 08:45:05 PM (12 years ago)
Author:
nacin
Message:

Allow add_editor_style() to load a child theme's editor style when the parent theme's style exists for the same filename. props SergeyBiryukov. see #21026 for trunk.

File:
1 edited

Legend:

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

    r20342 r21114  
    336336
    337337                        foreach ( $editor_styles as $key => $file ) {
    338                             if ( $file && file_exists( "$template_dir/$file" ) ) {
     338                            if ( $file && file_exists( "$template_dir/$file" ) )
    339339                                $mce_css[] = "$template_uri/$file";
    340                                 $editor_styles[$key] = '';
    341                             }
    342340                        }
    343341                    }
Note: See TracChangeset for help on using the changeset viewer.