Ignore WordPress.DB.PreparedSQL.NotPrepared

This commit is contained in:
Frédéric Demarle 2019-02-06 10:24:41 +01:00
parent 6e4854b3aa
commit 03a60fddfc
1 changed files with 1 additions and 1 deletions

View File

@ -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 ); $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 ); $wpdb->query( $sql );
wp_cache_delete( $product_id_with_stock, 'post_meta' ); wp_cache_delete( $product_id_with_stock, 'post_meta' );