WordPress.org

Make WordPress Core

Changes between Version 1 and Version 2 of Ticket #19437, comment 15


Ignore:
Timestamp:
04/02/12 20:37:32 (2 years ago)
Author:
azaozz
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #19437, comment 15

    v1 v2  
    33Wouldn't that add the child theme's stylesheet before the parent theme's? At first look in the patch the parent theme loop is after the child theme loop: 
    44 
    5 {{{ 
    6 if ( is_child_theme() ) {  
    7   $template_uri = get_template_directory_uri();  
    8   $template_dir = get_template_directory();  
    9  
    10   foreach ( $editor_styles as $file ) {  
    11     ... 
    12   } 
    13 } 
    14  
    15 foreach ( $editor_styles as $file ) {  
    16   if ( $file && file_exists( "$style_dir/$file" ) )  
    17     ... 
    18 }  
    19 }}} 
     5Edit: nevermind, that's otherwise round.