From 66dbb44100049c107644a006e07da2edb0358538 Mon Sep 17 00:00:00 2001 From: Claudio Sanches Date: Mon, 12 Aug 2019 12:45:43 -0300 Subject: [PATCH] Ensure WC_Product_Data_Store_CPT::is_existing_sku() return boolean --- includes/data-stores/class-wc-product-data-store-cpt.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/data-stores/class-wc-product-data-store-cpt.php b/includes/data-stores/class-wc-product-data-store-cpt.php index 61d765c35bf..b82caabad0d 100644 --- a/includes/data-stores/class-wc-product-data-store-cpt.php +++ b/includes/data-stores/class-wc-product-data-store-cpt.php @@ -949,7 +949,7 @@ class WC_Product_Data_Store_CPT extends WC_Data_Store_WP implements WC_Object_Da global $wpdb; // phpcs:ignore WordPress.VIP.DirectDatabaseQuery.DirectQuery - return $wpdb->get_var( + return (bool) $wpdb->get_var( $wpdb->prepare( " SELECT posts.ID