mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 12:20:22 +00:00
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 git-svn-id: https://develop.svn.wordpress.org/trunk@25649 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -105,7 +105,7 @@ function wp_version_check() {
|
||||
foreach ( $offer as $offer_key => $value ) {
|
||||
if ( 'packages' == $offer_key )
|
||||
$offer['packages'] = (object) array_intersect_key( array_map( 'esc_url', $offer['packages'] ),
|
||||
array_fill_keys( array( 'full', 'no_content', 'new_bundled', 'partial' ), '' ) );
|
||||
array_fill_keys( array( 'full', 'no_content', 'new_bundled', 'partial', 'rollback' ), '' ) );
|
||||
elseif ( 'download' == $offer_key )
|
||||
$offer['download'] = esc_url( $value );
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user