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:
Marco Almeida 2020-09-29 09:42:19 +01:00 committed by GitHub
parent 4cda59f96c
commit d66cf442d9
1 changed files with 1 additions and 1 deletions

View File

@ -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;