From f07ed76e43434cc6dc8a024df05b81621a2d7600 Mon Sep 17 00:00:00 2001 From: Claudio Sanches Date: Wed, 4 Dec 2019 15:53:48 -0300 Subject: [PATCH] Fixed coding standards --- includes/wc-product-functions.php | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/includes/wc-product-functions.php b/includes/wc-product-functions.php index 18e93615dcf..47fc7886a5a 100644 --- a/includes/wc-product-functions.php +++ b/includes/wc-product-functions.php @@ -1450,7 +1450,8 @@ function wc_update_product_lookup_tables_column( $column ) { } else { $meta_key = '_' . $column; } - $column = esc_sql( $column ); + $column = esc_sql( $column ); + // phpcs:disable WordPress.DB.PreparedSQL.InterpolatedNotPrepared $wpdb->query( $wpdb->prepare( " @@ -1463,11 +1464,13 @@ function wc_update_product_lookup_tables_column( $column ) { $meta_key ) ); + // phpcs:enable WordPress.DB.PreparedSQL.InterpolatedNotPrepared break; case 'downloadable': case 'virtual': - $column = esc_sql( $column ); + $column = esc_sql( $column ); $meta_key = '_' . $column; + // phpcs:disable WordPress.DB.PreparedSQL.InterpolatedNotPrepared $wpdb->query( $wpdb->prepare( " @@ -1480,11 +1483,13 @@ function wc_update_product_lookup_tables_column( $column ) { $meta_key ) ); + // phpcs:enable WordPress.DB.PreparedSQL.InterpolatedNotPrepared break; case 'onsale': $column = esc_sql( $column ); $decimals = absint( wc_get_price_decimals() ); + // phpcs:disable WordPress.DB.PreparedSQL.InterpolatedNotPrepared $wpdb->query( $wpdb->prepare( " @@ -1503,6 +1508,7 @@ function wc_update_product_lookup_tables_column( $column ) { $decimals ) ); + // phpcs:enable WordPress.DB.PreparedSQL.InterpolatedNotPrepared delete_option( 'woocommerce_product_lookup_table_is_generating' ); // Complete. break;