Skip to content

Commit

Permalink
Fix lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
octaedro committed Mar 7, 2024
1 parent 96f2b45 commit 6147225
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion plugins/woocommerce/src/Admin/API/Reports/DataStore.php
Original file line number Diff line number Diff line change
Expand Up @@ -1398,10 +1398,10 @@ protected function get_attribute_subqueries( $query_args ) {

$in_comparator = '=' === $comparator ? 'in' : 'not in';


// Add subquery for products ordered using attributes not used in variations.
$term_attribute_subquery = "select product_id from {$wpdb->prefix}wc_product_attributes_lookup where is_variation_attribute=0 and term_id = %s";
// phpcs:disable WordPress.DB.PreparedSQL.InterpolatedNotPrepared
// phpcs:disable WordPress.DB.PreparedSQLPlaceholders.ReplacementsWrongNumber
$sql_clauses['where'][] = $wpdb->prepare(
"
( ( {$join_alias}.meta_key = %s AND {$join_alias}.meta_value {$comparator} %s ) or (
Expand All @@ -1412,6 +1412,7 @@ protected function get_attribute_subqueries( $query_args ) {
$term_id,
);
// phpcs:enable WordPress.DB.PreparedSQL.InterpolatedNotPrepared
// phpcs:enable WordPress.DB.PreparedSQLPlaceholders.ReplacementsWrongNumber
}
}

Expand Down

0 comments on commit 6147225

Please sign in to comment.