WordPress.org

Make WordPress Core


Ignore:
Timestamp:
09/30/2013 12:20:35 AM (6 years ago)
Author:
dd32
Message:

Automatic Updates: Add a rollback functionality upon installation failure, the rollback package will be available for partial-updates for automatic updates and be similar to our existing partial builds (but in reverse).
A further iteration of this is to also detect whitescreens (fatals) after a auto update, and trigger the rollback for that too.
See #22704

File:
1 edited

Legend:

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

    r25566 r25649  
    137137    // Cache the checksums for later
    138138    foreach ( $version as $v ) {
     139        if ( ! isset( $body['checksums'][ $v ] ) )
     140            $body['checksums'][ $v ] = false;
    139141        set_site_transient( "core_checksums_$v", $body['checksums'][ $v ], HOUR_IN_SECONDS );
    140142        $return[ $v ] = $body['checksums'][ $v ];
Note: See TracChangeset for help on using the changeset viewer.