Changeset 12091 for trunk/wp-includes/theme.php
- Timestamp:
- 10/22/2009 08:15:54 PM (17 years ago)
- File:
-
- 1 edited
-
trunk/wp-includes/theme.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/theme.php
r12044 r12091 545 545 while ( ($theme_dir = readdir($themes_dir)) !== false ) { 546 546 if ( is_dir($theme_root . '/' . $theme_dir) && is_readable($theme_root . '/' . $theme_dir) ) { 547 if ( $theme_dir{0} == '.' || $theme_dir == ' ..' || $theme_dir == 'CVS' )547 if ( $theme_dir{0} == '.' || $theme_dir == 'CVS' ) 548 548 continue; 549 549 550 $stylish_dir = @ opendir($theme_root . '/' . $theme_dir);550 $stylish_dir = @opendir($theme_root . '/' . $theme_dir); 551 551 $found_stylesheet = false; 552 552 … … 563 563 $subdir = "$theme_root/$theme_dir"; 564 564 $subdir_name = $theme_dir; 565 $theme_subdir = @opendir( $subdir );566 567 while ( ($theme_ dir = readdir($theme_subdir)) !== false ) {568 if ( is_dir( $subdir . '/' . $theme_ dir) && is_readable($subdir . '/' . $theme_dir) ) {569 if ( $theme_ dir{0} == '.' || $theme_dir == '..' || $theme_dir == 'CVS' )565 $theme_subdirs = @opendir( $subdir ); 566 567 while ( ($theme_subdir = readdir($theme_subdirs)) !== false ) { 568 if ( is_dir( $subdir . '/' . $theme_subdir) && is_readable($subdir . '/' . $theme_subdir) ) { 569 if ( $theme_subdir{0} == '.' || $theme_subdir == 'CVS' ) 570 570 continue; 571 571 572 $stylish_dir = @ opendir($subdir . '/' . $theme_dir);572 $stylish_dir = @opendir($subdir . '/' . $theme_subdir); 573 573 $found_stylesheet = false; 574 574 … … 584 584 } 585 585 @closedir($theme_subdir); 586 587 586 $wp_broken_themes[$theme_dir] = array('Name' => $theme_dir, 'Title' => $theme_dir, 'Description' => __('Stylesheet is missing.')); 588 587 }
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)