// Remove maintenance file, we're done with potential site-breaking changes.
$wp_filesystem->
delete( $maintenance_file );
/*
* 3.5 -> 3.5+ - an empty twentytwelve directory was created upon upgrade to 3.5 for some users,
* preventing installation of Twenty Twelve.
*/
if ( '3.5' ===
$old_wp_version ) { if ( is_dir( WP_CONTENT_DIR . '/themes/twentytwelve'
) && !
file_exists( WP_CONTENT_DIR . '/themes/twentytwelve/style.css'
) ) { $wp_filesystem->
delete( $wp_filesystem->
wp_themes_dir() . 'twentytwelve/'
);
} } /*
* Copy new bundled plugins & themes.
* This gives us the ability to install new plugins & themes bundled with
* future versions of WordPress whilst avoiding the re-install upon upgrade issue.
* $development_build controls us overwriting bundled themes and plugins when a non-stable release is being updated.
*/
if ( !
is_wp_error( $result ) && ( !
defined( 'CORE_UPGRADE_SKIP_NEW_BUNDLED'
) || ! CORE_UPGRADE_SKIP_NEW_BUNDLED
) )