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

git-svn-id: https://develop.svn.wordpress.org/trunk@20490 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin 2012-04-17 02:43:13 +00:00
parent 7593627d19
commit 8481a619b6
1 changed files with 1 additions and 1 deletions

View File

@ -184,7 +184,7 @@ function install_plugin_install_status($api, $loop = false) {
//Check to see if this plugin is known to be installed, and has an update awaiting it.
$update_plugins = get_site_transient('update_plugins');
if ( is_object( $update_plugins ) ) {
if ( isset( $update_plugins->response ) ) {
foreach ( (array)$update_plugins->response as $file => $plugin ) {
if ( $plugin->slug === $api->slug ) {
$status = 'update_available';