Ticket #16117: 16117.patch
File 16117.patch, 645 bytes (added by , 15 years ago) |
---|
-
wp-admin/network/themes.php
95 95 $main_theme = get_current_theme(); 96 96 $files_to_delete = $theme_info = array(); 97 97 foreach ( $themes as $key => $theme ) { 98 if ( ! file_exists( WP_CONTENT_DIR . '/themes/' . $theme . '/style.css' ) ) { 99 unset( $themes[$key] ); 100 continue; 101 } 98 102 $data = get_theme_data( WP_CONTENT_DIR . '/themes/' . $theme . '/style.css' ); 99 103 if ( $data['Name'] == $main_theme ) { 100 104 unset( $themes[$key] );