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
|
* @return bool
|
||||||
*/
|
*/
|
||||||
public function auto_update_woocommerce( $update, $plugin ) {
|
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;
|
return true;
|
||||||
} else {
|
} else {
|
||||||
return $update;
|
return $update;
|
||||||
|
|
Loading…
Reference in New Issue