Updated call to reflect function change.

This commit is contained in:
Peter Fabian 2019-02-18 18:59:37 +01:00
parent ba12cf723c
commit 42855592e4
1 changed files with 1 additions and 1 deletions

View File

@ -265,7 +265,7 @@ final class WooCommerce {
case 'cron': case 'cron':
return defined( 'DOING_CRON' ); return defined( 'DOING_CRON' );
case 'frontend': 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();
} }
} }