Make WordPress Core


Ignore:
Timestamp:
12/10/2021 12:04:03 AM (5 years ago)
Author:
peterwilsoncc
Message:

Upgrade/install: Revert upgrader rollback features.

Revert the rollback features introduced for theme and plugin upgrades during the WordPress 5.9 cycle. A bug (suspected to be in third party virtualisation software) causes the upgrades to fail consistently on some set ups. The revert is to allow contributors further time to investigate mitigation options.

Reverts [52337], [52289], [52284], [51951], [52192], [51902], [51899], [51898], [51815].

Props pbiron, dlh, peterwilsoncc, galbaras, SergeyBiryukov, afragen, costdev, bronsonquick, aristath, noisysocks, desrosj, TobiasBg, hellofromTonya, francina, Boniu91.
See #54543, #54166, #51857.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-plugin-upgrader.php

    r51815 r52351  
    227227                'clear_working'     => true,
    228228                'hook_extra'        => array(
    229                     'plugin'      => $plugin,
    230                     'type'        => 'plugin',
    231                     'action'      => 'update',
    232                     'temp_backup' => array(
    233                         'slug' => dirname( $plugin ),
    234                         'src'  => WP_PLUGIN_DIR,
    235                         'dir'  => 'plugins',
    236                     ),
     229                    'plugin' => $plugin,
     230                    'type'   => 'plugin',
     231                    'action' => 'update',
    237232                ),
    238233            )
     
    348343                    'is_multi'          => true,
    349344                    'hook_extra'        => array(
    350                         'plugin'      => $plugin,
    351                         'temp_backup' => array(
    352                             'slug' => dirname( $plugin ),
    353                             'src'  => WP_PLUGIN_DIR,
    354                             'dir'  => 'plugins',
    355                         ),
     345                        'plugin' => $plugin,
    356346                    ),
    357347                )
Note: See TracChangeset for help on using the changeset viewer.