mirror of
git://develop.git.wordpress.org/
synced 2025-01-18 05:18:42 +01:00
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:
parent
7593627d19
commit
8481a619b6
@ -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';
|
||||
|
Loading…
x
Reference in New Issue
Block a user