Ensure WC_Product_Data_Store_CPT::is_existing_sku() return boolean

This commit is contained in:
Claudio Sanches 2019-08-12 12:45:43 -03:00
parent 5b9b67ace1
commit 66dbb44100
1 changed files with 1 additions and 1 deletions

View File

@ -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