Ticket #29136: get_editor_stylesheets-no_parent.diff
File get_editor_stylesheets-no_parent.diff, 695 bytes (added by , 11 years ago) |
---|
-
theme.php
1429 1429 } 1430 1430 } 1431 1431 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 1444 1432 foreach ( $editor_styles as $file ) { 1445 1433 if ( $file && file_exists( "$style_dir/$file" ) ) { 1446 1434 $stylesheets[] = "$style_uri/$file";