Ticket #24639: search_theme_directories_continue.patch
File search_theme_directories_continue.patch, 846 bytes (added by , 12 years ago) |
---|
-
theme.php
374 374 // Start with directories in the root of the current theme directory. 375 375 $dirs = @ scandir( $theme_root ); 376 376 if ( ! $dirs ) 377 return false;377 continue; 378 378 foreach ( $dirs as $dir ) { 379 379 if ( ! is_dir( $theme_root . '/' . $dir ) || $dir[0] == '.' || $dir == 'CVS' ) 380 380 continue; … … 391 391 // wp-content/themes is $theme_root, a-folder-of-themes is $dir, then themes are $sub_dirs 392 392 $sub_dirs = @ scandir( $theme_root . '/' . $dir ); 393 393 if ( ! $sub_dirs ) 394 return false;394 continue; 395 395 foreach ( $sub_dirs as $sub_dir ) { 396 396 if ( ! is_dir( $theme_root . '/' . $dir . '/' . $sub_dir ) || $dir[0] == '.' || $dir == 'CVS' ) 397 397 continue;