WordPress.org

Make WordPress Core

Ticket #20441: 20441.patch

File 20441.patch, 628 bytes (added by ampt, 2 years ago)
  • wp-admin/includes/plugin-install.php

     
    184184 
    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 ) { 
    190190                                $status = 'update_available';