Use single quotes to delineate mysql values instead of double quotes closes #29969
This commit is contained in:
parent
d06cfc38e8
commit
aa939f6081
|
@ -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;';
|
||||
|
||||
|
|
Loading…
Reference in New Issue