Make WordPress Core


Ignore:
Timestamp:
09/30/2013 12:20:35 AM (10 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-includes/update.php

    r25634 r25649  
    106106            if ( 'packages' == $offer_key )
    107107                $offer['packages'] = (object) array_intersect_key( array_map( 'esc_url', $offer['packages'] ),
    108                     array_fill_keys( array( 'full', 'no_content', 'new_bundled', 'partial' ), '' ) );
     108                    array_fill_keys( array( 'full', 'no_content', 'new_bundled', 'partial', 'rollback' ), '' ) );
    109109            elseif ( 'download' == $offer_key )
    110110                $offer['download'] = esc_url( $value );
Note: See TracChangeset for help on using the changeset viewer.