Make WordPress Core


Ignore:
Timestamp:
07/12/2020 01:14:01 AM (5 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/src/wp-admin/includes/class-wp-upgrader.php

    r48399 r48445  
    661661     *                                               WP_Upgrader::run().
    662662     * }
    663      * @return array|false|WP_error The result from self::install_package() on success, otherwise a WP_Error,
     663     * @return array|false|WP_Error The result from self::install_package() on success, otherwise a WP_Error,
    664664     *                              or false if unable to connect to the filesystem.
    665665     */
Note: See TracChangeset for help on using the changeset viewer.