WordPress.org

Make WordPress Core

Changeset 20490


Ignore:
Timestamp:
04/17/12 02:43:13 (2 years ago)
Author:
nacin
Message:

Check for the response property in tue update_plugins transient object. props ampt, fixes #20441.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/plugin-install.php

    r20333 r20490  
    185185    //Check to see if this plugin is known to be installed, and has an update awaiting it. 
    186186    $update_plugins = get_site_transient('update_plugins'); 
    187     if ( is_object( $update_plugins ) ) { 
     187    if ( isset( $update_plugins->response ) ) { 
    188188        foreach ( (array)$update_plugins->response as $file => $plugin ) { 
    189189            if ( $plugin->slug === $api->slug ) { 
Note: See TracChangeset for help on using the changeset viewer.