From 0bd9c11b44851e0ed74bb60a58f161c0b2dfe645 Mon Sep 17 00:00:00 2001 From: Claudio Sanches Date: Mon, 1 Feb 2021 19:30:43 -0300 Subject: [PATCH] Fix conditional --- includes/wc-template-functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/wc-template-functions.php b/includes/wc-template-functions.php index 0b5f7172224..518ff5e26d1 100644 --- a/includes/wc-template-functions.php +++ b/includes/wc-template-functions.php @@ -3569,7 +3569,7 @@ function wc_empty_cart_message() { */ function wc_page_noindex() { // wp_no_robots is deprecated since WP 5.7. - if ( ! function_exists( 'wp_robots_no_robots' ) ) { + if ( function_exists( 'wp_robots_no_robots' ) ) { return; }