Do not call unnecessary create_tables() -- tables should be ready by the time we call the method
This commit is contained in:
parent
2f21b3592e
commit
b37421fb98
|
@ -62,8 +62,6 @@ class CategoryLookup {
|
|||
public function regenerate() {
|
||||
global $wpdb;
|
||||
|
||||
// Delete existing data and ensure schema is current.
|
||||
\WC_Install::create_tables();
|
||||
$wpdb->query( "TRUNCATE TABLE $wpdb->wc_category_lookup" );
|
||||
|
||||
$terms = get_terms(
|
||||
|
|
Loading…
Reference in New Issue