|
@@ 475-476 (lines=2) @@
|
| 472 |
|
continue; |
| 473 |
|
} |
| 474 |
|
foreach ( $dirs as $dir ) { |
| 475 |
|
if ( ! is_dir( $theme_root . '/' . $dir ) || $dir[0] == '.' || $dir == 'CVS' ) |
| 476 |
|
continue; |
| 477 |
|
if ( file_exists( $theme_root . '/' . $dir . '/style.css' ) ) { |
| 478 |
|
// wp-content/themes/a-single-theme |
| 479 |
|
// wp-content/themes is $theme_root, a-single-theme is $dir |
|
@@ 494-495 (lines=2) @@
|
| 491 |
|
continue; |
| 492 |
|
} |
| 493 |
|
foreach ( $sub_dirs as $sub_dir ) { |
| 494 |
|
if ( ! is_dir( $theme_root . '/' . $dir . '/' . $sub_dir ) || $dir[0] == '.' || $dir == 'CVS' ) |
| 495 |
|
continue; |
| 496 |
|
if ( ! file_exists( $theme_root . '/' . $dir . '/' . $sub_dir . '/style.css' ) ) |
| 497 |
|
continue; |
| 498 |
|
$found_themes[ $dir . '/' . $sub_dir ] = array( |