Index: wp-includes/theme.php =================================================================== --- wp-includes/theme.php (revision 12085) +++ wp-includes/theme.php (working copy) @@ -544,7 +544,7 @@ while ( ($theme_dir = readdir($themes_dir)) !== false ) { if ( is_dir($theme_root . '/' . $theme_dir) && is_readable($theme_root . '/' . $theme_dir) ) { - if ( $theme_dir{0} == '.' || $theme_dir == '..' || $theme_dir == 'CVS' ) + if ( $theme_dir{0} == '.' || $theme_dir == '..' || $theme_dir == 'CVS' || $theme_dir == '.svn' ) continue; $stylish_dir = @ opendir($theme_root . '/' . $theme_dir); @@ -562,14 +562,14 @@ if ( !$found_stylesheet ) { // look for themes in that dir $subdir = "$theme_root/$theme_dir"; $subdir_name = $theme_dir; - $theme_subdir = @ opendir( $subdir ); + $theme_subdirs = @ opendir( $subdir ); - while ( ($theme_dir = readdir($theme_subdir)) !== false ) { - if ( is_dir( $subdir . '/' . $theme_dir) && is_readable($subdir . '/' . $theme_dir) ) { - if ( $theme_dir{0} == '.' || $theme_dir == '..' || $theme_dir == 'CVS' ) + while ( ($theme_subdir = readdir($theme_subdirs)) !== false ) { + if ( is_dir( $subdir . '/' . $theme_subdir) && is_readable($subdir . '/' . $theme_subdir) ) { + if ( $theme_subdir{0} == '.' || $theme_subdir == '..' || $theme_subdir == 'CVS' || $theme_subdir == '.svn' ) continue; - $stylish_dir = @ opendir($subdir . '/' . $theme_dir); + $stylish_dir = @ opendir($subdir . '/' . $theme_subdir); $found_stylesheet = false; while ( ($theme_file = readdir($stylish_dir)) !== false ) { Index: wp-admin/wp-admin.dev.css =================================================================== --- wp-admin/wp-admin.dev.css (revision 12085) +++ wp-admin/wp-admin.dev.css (working copy) @@ -3542,3 +3542,9 @@ visibility: hidden; } +#broken-themes { + text-align: left; + width: 50%; + border-spacing: 3px; + padding: 3px; +} Index: wp-admin/themes.php =================================================================== --- wp-admin/themes.php (revision 12085) +++ wp-admin/themes.php (working copy) @@ -272,7 +272,7 @@
-