Avoid preparing the table name for truncate query
This commit is contained in:
parent
91ef6ae8ba
commit
54151becc5
|
@ -104,7 +104,7 @@ class DataRegenerator {
|
|||
$this->data_store->unset_regeneration_in_progress_flag();
|
||||
|
||||
if ( $this->data_store->check_lookup_table_exists() ) {
|
||||
$wpdb->query( $wpdb->prepare( 'TRUNCATE TABLE %s', $this->lookup_table_name ) );
|
||||
$wpdb->query( "TRUNCATE TABLE {$this->lookup_table_name}" );
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue