Ticket #19437: 19437.child-editor-style.patch
| File 19437.child-editor-style.patch, 1.2 KB (added by , 14 years ago) |
|---|
-
wp-includes/class-wp-editor.php
330 330 $style_uri = get_stylesheet_directory_uri(); 331 331 $style_dir = get_stylesheet_directory(); 332 332 333 foreach ( $editor_styles as $key => $file ) {334 if ( $file && file_exists( "$style_dir/$file" ) ) {335 $mce_css[] = "$style_uri/$file";336 $editor_styles[$key] = '';337 }338 }339 340 333 if ( is_child_theme() ) { 341 334 $template_uri = get_template_directory_uri(); 342 335 $template_dir = get_template_directory(); 343 336 344 foreach ( $editor_styles as $ file ) {345 if ( $file && file_exists( "$template_dir/$file" ) ) 337 foreach ( $editor_styles as $key => $file ) { 338 if ( $file && file_exists( "$template_dir/$file" ) ) { 346 339 $mce_css[] = "$template_uri/$file"; 340 $editor_styles[$key] = ''; 341 } 347 342 } 348 343 } 349 344 345 foreach ( $editor_styles as $file ) { 346 if ( $file && file_exists( "$style_dir/$file" ) ) 347 $mce_css[] = "$style_uri/$file"; 348 } 349 350 350 $mce_css = implode( ',', $mce_css ); 351 351 } else { 352 352 $mce_css = '';