Use single quotes to delineate mysql values instead of double quotes closes #29969

This commit is contained in:
roykho 2021-07-14 08:45:01 -07:00
parent d06cfc38e8
commit aa939f6081
No known key found for this signature in database
GPG Key ID: 7B36C0EA25795714
1 changed files with 1 additions and 1 deletions

View File

@ -1118,7 +1118,7 @@ class WC_Product_Data_Store_CPT extends WC_Data_Store_WP implements WC_Object_Da
$product->get_id()
);
$query .= ' AND postmeta.meta_key IN ( "' . implode( '","', array_map( 'esc_sql', $meta_attribute_names ) ) . '" )';
$query .= " AND postmeta.meta_key IN ( '" . implode( "','", array_map( 'esc_sql', $meta_attribute_names ) ) . "' )";
$query .= ' ORDER BY posts.menu_order ASC, postmeta.post_id ASC;';