From d66cf442d9793ce4c2251f018ffda6a321358201 Mon Sep 17 00:00:00 2001 From: Marco Almeida Date: Tue, 29 Sep 2020 09:42:19 +0100 Subject: [PATCH] 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 --- .../woocommerce-beta-tester/includes/class-wc-beta-tester.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/woocommerce-beta-tester/includes/class-wc-beta-tester.php b/plugins/woocommerce-beta-tester/includes/class-wc-beta-tester.php index ee9e0fb18f9..83012271c4e 100644 --- a/plugins/woocommerce-beta-tester/includes/class-wc-beta-tester.php +++ b/plugins/woocommerce-beta-tester/includes/class-wc-beta-tester.php @@ -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;