Make WordPress Core

Changeset 25866


Ignore:
Timestamp:
10/22/2013 05:19:48 PM (8 years ago)
Author:
nacin
Message:

Updates: Disable maintenance mode once we've finished copying files, to minimize disruption.

props dd32.
fixes #25655.

File:
1 edited

Legend:

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

    r25861 r25866  
    807807    }
    808808
     809    apply_filters( 'update_feedback', __( 'Disabling Maintenance mode…' ) );
     810    // Remove maintenance file, we're done with potential site-breaking changes
     811    $wp_filesystem->delete( $maintenance_file );
     812
    809813    // 3.5 -> 3.5+ - an empty twentytwelve directory was created upon upgrade to 3.5 for some users, preventing installation of Twenty Twelve.
    810814    if ( '3.5' == $old_wp_version ) {
     
    861865    // Handle $result error from the above blocks
    862866    if ( is_wp_error($result) ) {
    863         $wp_filesystem->delete($maintenance_file);
    864867        $wp_filesystem->delete($from, true);
    865868        return $result;
     
    887890    else
    888891        delete_option('update_core');
    889 
    890     apply_filters( 'update_feedback', __( 'Disabling Maintenance mode…' ) );
    891     // Remove maintenance file, we're done.
    892     $wp_filesystem->delete($maintenance_file);
    893892
    894893    // If we made it this far:
Note: See TracChangeset for help on using the changeset viewer.