From 2334f6a9c4e08273cf33067c41862fdce0a1a03d Mon Sep 17 00:00:00 2001 From: IanDelMar <42134098+IanDelMar@users.noreply.github.com> Date: Sat, 18 May 2019 10:36:25 +0200 Subject: [PATCH] Fix for #976 Declare `wc_reviews_enabled()` and `wc_reviews_enabled()` on frontend only. --- inc/woocommerce.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/woocommerce.php b/inc/woocommerce.php index f894256..c858df8 100644 --- a/inc/woocommerce.php +++ b/inc/woocommerce.php @@ -139,7 +139,7 @@ if ( ! function_exists( 'understrap_wc_form_field_args' ) ) { } } -if ( ! function_exists( 'wc_review_ratings_enabled' ) ) { +if ( ! is_admin() && ! function_exists( 'wc_review_ratings_enabled' ) ) { /** * Check if reviews are enabled. *