Avoid preparing the table name for truncate query

This commit is contained in:
Michael Pretty 2023-02-17 10:33:36 -05:00
parent 91ef6ae8ba
commit 54151becc5
1 changed files with 1 additions and 1 deletions

View File

@ -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}" );
}
}