Fix lint errors

This commit is contained in:
Manish Menaria 2024-09-13 14:57:03 +05:30
parent 2095c1a6e5
commit 7d23efe33e
1 changed files with 2 additions and 2 deletions

View File

@ -215,9 +215,9 @@ final class QueryFilters {
if ( ! empty( $valid_statuses ) ) {
global $wpdb;
$placeholders = array_fill( 0, count( $valid_statuses ), '%s' );
$placeholders = implode( ',', array_fill( 0, count( $valid_statuses ), '%s' ) );
$args['where'] .= $wpdb->prepare(
" AND wc_product_meta_lookup.stock_status IN (" . implode( ',', $placeholders ) . ")",
" AND wc_product_meta_lookup.stock_status IN ($placeholders)",
$valid_statuses
);
}