Make WordPress Core

Ticket #16117: 16117.patch

File 16117.patch, 645 bytes (added by SergeyBiryukov, 15 years ago)
  • wp-admin/network/themes.php

     
    9595                        $main_theme = get_current_theme();
    9696                        $files_to_delete = $theme_info = array();
    9797                        foreach ( $themes as $key => $theme ) {
     98                                if ( ! file_exists( WP_CONTENT_DIR . '/themes/' . $theme . '/style.css' ) ) {
     99                                        unset( $themes[$key] );
     100                                        continue;
     101                                }
    98102                                $data = get_theme_data( WP_CONTENT_DIR . '/themes/' . $theme . '/style.css' );
    99103                                if ( $data['Name'] == $main_theme ) {
    100104                                        unset( $themes[$key] );