Make WordPress Core

Ticket #29136: get_editor_stylesheets-no_parent.diff

File get_editor_stylesheets-no_parent.diff, 695 bytes (added by GregLone, 11 years ago)
  • theme.php

     
    14291429                        }
    14301430                }
    14311431
    1432                 // Look in a parent theme first, that way child theme CSS overrides.
    1433                 if ( is_child_theme() ) {
    1434                         $template_uri = get_template_directory_uri();
    1435                         $template_dir = get_template_directory();
    1436 
    1437                         foreach ( $editor_styles as $key => $file ) {
    1438                                 if ( $file && file_exists( "$template_dir/$file" ) ) {
    1439                                         $stylesheets[] = "$template_uri/$file";
    1440                                 }
    1441                         }
    1442                 }
    1443 
    14441432                foreach ( $editor_styles as $file ) {
    14451433                        if ( $file && file_exists( "$style_dir/$file" ) ) {
    14461434                                $stylesheets[] = "$style_uri/$file";