Make WordPress Core


Ignore:
Timestamp:
07/12/2020 01:14:01 AM (4 years ago)
Author:
SergeyBiryukov
Message:

Administration: Handle the result of Plugin_Upgrader::bulk_upgrade() for a plugin that is already at the latest version in the same way it is handled for themes.

This corrects a fragile check of the result in wp_ajax_update_plugin() that depended on the internal array pointer, and brings some consistency with wp_ajax_update_theme().

Follow-up to [37714], [48401].
See #50448.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/ajax/UpdatePlugin.php

    r47198 r48445  
    158158                'plugin'       => 'hello.php',
    159159                'pluginName'   => 'Hello Dolly',
    160                 'errorMessage' => 'Plugin update failed.',
     160                'errorMessage' => 'The plugin is at the latest version.',
    161161                'oldVersion'   => 'Version 1.7.2',
    162162                'newVersion'   => '',
Note: See TracChangeset for help on using the changeset viewer.