Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions includes/ProductSets/Sync.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<?php
// phpcs:ignoreFile
/**
* Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved
*
Expand Down Expand Up @@ -301,7 +300,8 @@ public function maybe_sync_product_set_on_product_cat_remove( $term_id ) {
*
* @since 2.3.0
*
* @param int $product_set_term_id Product Set Term ID.
* @param int $product_set_term_id Product Set Term ID.
* @param string $taxonomy Taxonomy name.
*/
public function sync_remove_product_set( $product_set_term_id, $taxonomy ) {

Expand Down Expand Up @@ -381,7 +381,7 @@ public function maybe_sync_product_set( $product_set_id ) {
implode( ', ', array_map( 'intval', $product_ids ) )
);

$variation_ids = $wpdb->get_results( $sql );
$variation_ids = $wpdb->get_results( $sql ); // phpcs:ignore WordPress.DB.PreparedSQL.NotPrepared
if ( ! empty( $variation_ids ) ) {

// product_variations: add retailer id to the products filter
Expand Down