1493 | | $style_uri = get_stylesheet_directory_uri(); |
1494 | | if ( TEMPLATEPATH == STYLESHEETPATH ) { |
1495 | | foreach ( $editor_styles as $file ) |
1496 | | $mce_css[] = "$style_uri/$file"; |
1497 | | } else { |
1498 | | $style_dir = get_stylesheet_directory(); |
1499 | | $template_uri = get_template_directory_uri(); |
1500 | | $template_dir = get_template_directory(); |
1501 | | foreach ( $editor_styles as $file ) { |
1502 | | if ( file_exists( "$style_dir/$file" ) ) |
| 1493 | foreach ( $editor_styles as $file ) { |
| 1494 | if ( strpos ( $file, 'http://' ) === 0 || strpos ( $file, 'https://' ) === 0 ) { |
| 1495 | $mce_css[] = $file; |
| 1496 | } else { |
| 1497 | $style_uri = get_stylesheet_directory_uri(); |
| 1498 | if ( TEMPLATEPATH == STYLESHEETPATH ) { |
1504 | | if ( file_exists( "$template_dir/$file" ) ) |
1505 | | $mce_css[] = "$template_uri/$file"; |
| 1500 | } else { |
| 1501 | $style_dir = get_stylesheet_directory(); |
| 1502 | $template_uri = get_template_directory_uri(); |
| 1503 | $template_dir = get_template_directory(); |
| 1504 | if ( file_exists( "$style_dir/$file" ) ) |
| 1505 | $mce_css[] = "$style_uri/$file"; |
| 1506 | if ( file_exists( "$template_dir/$file" ) ) |
| 1507 | $mce_css[] = "$template_uri/$file"; |
| 1508 | } |