Ticket #22856: 22856.6.diff

File 22856.6.diff, 797 bytes (added by dd32, 5 months ago)
  • wp-admin/includes/update-core.php

     
    728728                } //end foreach 
    729729        } 
    730730 
     731        // 3.5 -> 3.5+ - an empty twentytwelve directory was created upon upgrade to 3.5 for some users, preventing installation of Twenty Twelve. 
     732        if ( '3.5' == $old_wp_version ) { 
     733                if ( is_dir( WP_CONTENT_DIR . '/themes/twentytwelve' ) && ! file_exists( WP_CONTENT_DIR . '/themes/twentytwelve/style.css' )  ) { 
     734                        $wp_filesystem->delete( $wp_filesystem->wp_themes_dir() . 'twentytwelve/', true ); 
     735                } 
     736        } 
     737 
    731738        // Handle $result error from the above blocks 
    732739        if ( is_wp_error($result) ) { 
    733740                $wp_filesystem->delete($maintenance_file);