Make WordPress Core


Ignore:
Timestamp:
01/03/2013 07:42:16 AM (12 years ago)
Author:
dd32
Message:

Upgrade: When upgrading from WordPress 3.5, if an empty twentytwelve theme directory exists, remove it to allow the installation of Twenty Twelve. See #22856. For trunk

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/update-core.php

    r23203 r23253  
    706706    }
    707707
     708    // 3.5 -> 3.5+ - an empty twentytwelve directory was created upon upgrade to 3.5 for some users, preventing installation of Twenty Twelve.
     709    if ( '3.5' == $old_wp_version ) {
     710        if ( is_dir( WP_CONTENT_DIR . '/themes/twentytwelve' ) && ! file_exists( WP_CONTENT_DIR . '/themes/twentytwelve/style.css' )  ) {
     711            $wp_filesystem->delete( $wp_filesystem->wp_themes_dir() . 'twentytwelve/' );
     712        }
     713    }
     714
    708715    // Copy New bundled plugins & themes
    709716    // This gives us the ability to install new plugins & themes bundled with future versions of WordPress whilst avoiding the re-install upon upgrade issue.
Note: See TracChangeset for help on using the changeset viewer.