Ensure WC_Product_Data_Store_CPT::is_existing_sku() return boolean
This commit is contained in:
parent
5b9b67ace1
commit
66dbb44100
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue