Changeset 20342
- Timestamp:
- 04/02/2012 10:26:11 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/class-wp-editor.php
r20334 r20342 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 } 343 } 344 345 foreach ( $editor_styles as $file ) { 346 if ( $file && file_exists( "$style_dir/$file" ) ) 347 $mce_css[] = "$style_uri/$file"; 348 348 } 349 349
Note: See TracChangeset
for help on using the changeset viewer.