Fixes "Notice: Undefined variable: item"
Fixes "Notice: Undefined variable: item" when running the WC_Beta_Tester auto_update_woocommerce method on the wp-admin plugins.php file
This commit is contained in:
parent
4cda59f96c
commit
d66cf442d9
|
@ -343,7 +343,7 @@ class WC_Beta_Tester {
|
|||
* @return bool
|
||||
*/
|
||||
public function auto_update_woocommerce( $update, $plugin ) {
|
||||
if ( true === $this->get_settings()->auto_update && 'woocommerce' === $item->slug ) {
|
||||
if ( true === $this->get_settings()->auto_update && 'woocommerce' === $plugin->slug ) {
|
||||
return true;
|
||||
} else {
|
||||
return $update;
|
||||
|
|
Loading…
Reference in New Issue