Fixed use of available_updates variable.
This commit is contained in:
parent
8361f9407f
commit
a601151ed0
|
@ -878,8 +878,8 @@ class WC_REST_System_Status_V2_Controller extends WC_REST_Controller {
|
||||||
$version_latest = $data['Version'];
|
$version_latest = $data['Version'];
|
||||||
|
|
||||||
// Find latest version.
|
// Find latest version.
|
||||||
if ( isset( $available_updates[ $plugin ]->update->new_version ) ) {
|
if ( isset( $this->available_updates[ $plugin ]->update->new_version ) ) {
|
||||||
$version_latest = $available_updates[ $plugin ]->update->new_version;
|
$version_latest = $this->available_updates[ $plugin ]->update->new_version;
|
||||||
}
|
}
|
||||||
|
|
||||||
return array(
|
return array(
|
||||||
|
|
Loading…
Reference in New Issue