Changeset 20059 for trunk/wp-includes/class-wp-editor.php
- Timestamp:
- 03/01/2012 12:18:26 AM (14 years ago)
- File:
-
- 1 edited
-
trunk/wp-includes/class-wp-editor.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/class-wp-editor.php
r19945 r20059 329 329 $editor_styles = array_unique($editor_styles); 330 330 $style_uri = get_stylesheet_directory_uri(); 331 if ( ! is_child_theme() ) { 332 foreach ( $editor_styles as $file ) 331 $style_dir = get_stylesheet_directory(); 332 333 foreach ( $editor_styles as $key => $file ) { 334 if ( $file && file_exists( "$style_dir/$file" ) ) { 333 335 $mce_css[] = "$style_uri/$file"; 334 } else { 335 $style_dir = get_stylesheet_directory(); 336 $editor_styles[$key] = ''; 337 } 338 } 339 340 if ( is_child_theme() ) { 336 341 $template_uri = get_template_directory_uri(); 337 342 $template_dir = get_template_directory(); 338 343 339 344 foreach ( $editor_styles as $file ) { 340 if ( file_exists( "$template_dir/$file" ) )345 if ( $file && file_exists( "$template_dir/$file" ) ) 341 346 $mce_css[] = "$template_uri/$file"; 342 347 } 343 344 foreach ( $editor_styles as $file ) {345 if ( file_exists( "$style_dir/$file" ) )346 $mce_css[] = "$style_uri/$file";347 }348 348 } 349 349 350 $mce_css = implode( ',', $mce_css ); 350 351 } else {
Note: See TracChangeset
for help on using the changeset viewer.