Make WordPress Core


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

    r48401 r48445  
    392392                        unset( $past_failure_emails[ $plugin ] );
    393393                }
     394
    394395                update_option( 'auto_plugin_theme_update_emails', $past_failure_emails );
    395                 reset( $results );
    396396
    397397                return $results;
Note: See TracChangeset for help on using the changeset viewer.