Ticket #10999: 10999.diff
File 10999.diff, 1.6 KB (added by , 14 years ago) |
---|
-
wp-includes/theme.php
544 544 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 == '..' || $theme_dir == 'CVS' || $theme_dir == '.svn' ) 548 548 continue; 549 549 550 550 $stylish_dir = @ opendir($theme_root . '/' . $theme_dir); … … 562 562 if ( !$found_stylesheet ) { // look for themes in that dir 563 563 $subdir = "$theme_root/$theme_dir"; 564 564 $subdir_name = $theme_dir; 565 $theme_subdir = @ opendir( $subdir );565 $theme_subdirs = @ opendir( $subdir ); 566 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' )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 == '..' || $theme_subdir == 'CVS' || $theme_subdir == '.svn' ) 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 575 575 while ( ($theme_file = readdir($stylish_dir)) !== false ) {