WordPress.org

Make WordPress Core


Ignore:
Timestamp:
07/12/2020 01:14:01 AM (17 months 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-theme-upgrader.php

    r48401 r48445  
    501501            unset( $past_failure_emails[ $theme ] );
    502502        }
     503
    503504        update_option( 'auto_plugin_theme_update_emails', $past_failure_emails );
    504         reset( $results );
    505505
    506506        return $results;
Note: See TracChangeset for help on using the changeset viewer.