WordPress.org

Make WordPress Core

Changeset 29825


Ignore:
Timestamp:
10/03/2014 12:01:51 AM (5 years ago)
Author:
SergeyBiryukov
Message:

Avoid a PHP notice in list_plugin_updates() if plugins_api() returned a WP_Error object.

fixes #29583.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/update-core.php

    r29512 r29825  
    242242    foreach ( (array) $plugins as $plugin_file => $plugin_data) {
    243243        $info = plugins_api('plugin_information', array('slug' => $plugin_data->update->slug ));
     244        if ( is_wp_error( $info ) ) {
     245            continue;
     246        }
     247
    244248        // Get plugin compat for running version of WordPress.
    245249        if ( isset($info->tested) && version_compare($info->tested, $cur_wp_version, '>=') ) {
Note: See TracChangeset for help on using the changeset viewer.