Ticket #10999: 10999.2.diff
File 10999.2.diff, 2.5 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 ) { -
wp-admin/wp-admin.dev.css
3542 3542 visibility: hidden; 3543 3543 } 3544 3544 3545 #broken-themes { 3546 text-align: left; 3547 width: 50%; 3548 border-spacing: 3px; 3549 padding: 3px; 3550 } -
wp-admin/themes.php
272 272 <h2><?php _e('Broken Themes'); ?></h2> 273 273 <p><?php _e('The following themes are installed but incomplete. Themes must have a stylesheet and a template.'); ?></p> 274 274 275 <table width="100%" cellpadding="3" cellspacing="3">275 <table id="broken-themes"> 276 276 <tr> 277 277 <th><?php _e('Name'); ?></th> 278 278 <th><?php _e('Description'); ?></th>