From 42855592e446c201f893b35455cc60dbee9fe5b0 Mon Sep 17 00:00:00 2001 From: Peter Fabian Date: Mon, 18 Feb 2019 18:59:37 +0100 Subject: [PATCH] Updated call to reflect function change. --- includes/class-woocommerce.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/class-woocommerce.php b/includes/class-woocommerce.php index d3517137fda..54309404c59 100644 --- a/includes/class-woocommerce.php +++ b/includes/class-woocommerce.php @@ -265,7 +265,7 @@ final class WooCommerce { case 'cron': return defined( 'DOING_CRON' ); case 'frontend': - return ( ! is_admin() || defined( 'DOING_AJAX' ) ) && ! defined( 'DOING_CRON' ) && ! self::is_rest_api_request(); + return ( ! is_admin() || defined( 'DOING_AJAX' ) ) && ! defined( 'DOING_CRON' ) && ! $this->is_rest_api_request(); } }