Fixed coding standards
This commit is contained in:
parent
b76bebab8d
commit
f07ed76e43
|
@ -1450,7 +1450,8 @@ function wc_update_product_lookup_tables_column( $column ) {
|
||||||
} else {
|
} else {
|
||||||
$meta_key = '_' . $column;
|
$meta_key = '_' . $column;
|
||||||
}
|
}
|
||||||
$column = esc_sql( $column );
|
$column = esc_sql( $column );
|
||||||
|
// phpcs:disable WordPress.DB.PreparedSQL.InterpolatedNotPrepared
|
||||||
$wpdb->query(
|
$wpdb->query(
|
||||||
$wpdb->prepare(
|
$wpdb->prepare(
|
||||||
"
|
"
|
||||||
|
@ -1463,11 +1464,13 @@ function wc_update_product_lookup_tables_column( $column ) {
|
||||||
$meta_key
|
$meta_key
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
// phpcs:enable WordPress.DB.PreparedSQL.InterpolatedNotPrepared
|
||||||
break;
|
break;
|
||||||
case 'downloadable':
|
case 'downloadable':
|
||||||
case 'virtual':
|
case 'virtual':
|
||||||
$column = esc_sql( $column );
|
$column = esc_sql( $column );
|
||||||
$meta_key = '_' . $column;
|
$meta_key = '_' . $column;
|
||||||
|
// phpcs:disable WordPress.DB.PreparedSQL.InterpolatedNotPrepared
|
||||||
$wpdb->query(
|
$wpdb->query(
|
||||||
$wpdb->prepare(
|
$wpdb->prepare(
|
||||||
"
|
"
|
||||||
|
@ -1480,11 +1483,13 @@ function wc_update_product_lookup_tables_column( $column ) {
|
||||||
$meta_key
|
$meta_key
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
// phpcs:enable WordPress.DB.PreparedSQL.InterpolatedNotPrepared
|
||||||
break;
|
break;
|
||||||
case 'onsale':
|
case 'onsale':
|
||||||
$column = esc_sql( $column );
|
$column = esc_sql( $column );
|
||||||
$decimals = absint( wc_get_price_decimals() );
|
$decimals = absint( wc_get_price_decimals() );
|
||||||
|
|
||||||
|
// phpcs:disable WordPress.DB.PreparedSQL.InterpolatedNotPrepared
|
||||||
$wpdb->query(
|
$wpdb->query(
|
||||||
$wpdb->prepare(
|
$wpdb->prepare(
|
||||||
"
|
"
|
||||||
|
@ -1503,6 +1508,7 @@ function wc_update_product_lookup_tables_column( $column ) {
|
||||||
$decimals
|
$decimals
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
// phpcs:enable WordPress.DB.PreparedSQL.InterpolatedNotPrepared
|
||||||
|
|
||||||
delete_option( 'woocommerce_product_lookup_table_is_generating' ); // Complete.
|
delete_option( 'woocommerce_product_lookup_table_is_generating' ); // Complete.
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue