Fixed use of available_updates variable.

This commit is contained in:
Peter Fabian 2019-05-03 10:34:59 +02:00
parent 8361f9407f
commit a601151ed0
1 changed files with 2 additions and 2 deletions

View File

@ -878,8 +878,8 @@ class WC_REST_System_Status_V2_Controller extends WC_REST_Controller {
$version_latest = $data['Version'];
// Find latest version.
if ( isset( $available_updates[ $plugin ]->update->new_version ) ) {
$version_latest = $available_updates[ $plugin ]->update->new_version;
if ( isset( $this->available_updates[ $plugin ]->update->new_version ) ) {
$version_latest = $this->available_updates[ $plugin ]->update->new_version;
}
return array(