Don't load frontend files during cron Closes #7183
This commit is contained in:
parent
eb68b1d688
commit
e7b4ecfbdc
|
@ -173,7 +173,7 @@ final class WooCommerce {
|
|||
case 'ajax' :
|
||||
return defined( 'DOING_AJAX' );
|
||||
case 'frontend' :
|
||||
return ! is_admin() || defined( 'DOING_AJAX' );
|
||||
return ( ! is_admin() || defined( 'DOING_AJAX' ) ) && ! defined( 'DOING_CRON' );
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue