Ignore WordPress.DB.PreparedSQL.NotPrepared
This commit is contained in:
parent
6e4854b3aa
commit
03a60fddfc
|
@ -1259,7 +1259,7 @@ class WC_Product_Data_Store_CPT extends WC_Data_Store_WP implements WC_Object_Da
|
|||
|
||||
$sql = apply_filters( 'woocommerce_update_product_stock_query', $sql, $product_id_with_stock, $stock_quantity, $operation );
|
||||
|
||||
// phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery
|
||||
// phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.PreparedSQL.NotPrepared
|
||||
$wpdb->query( $sql );
|
||||
|
||||
wp_cache_delete( $product_id_with_stock, 'post_meta' );
|
||||
|
|
Loading…
Reference in New Issue