Skip category creation on WC install (https://github.com/woocommerce/woocommerce-admin/pull/7401)
* Skip category creation on WC install * Wait for install to create lookup tables
This commit is contained in:
parent
2316b2f4ab
commit
904b5e282f
|
@ -138,6 +138,11 @@ class CategoryLookup {
|
|||
* @param int $category_id Term ID being created.
|
||||
*/
|
||||
public function on_create( $category_id ) {
|
||||
// If WooCommerce is being installed on a multisite, lookup tables haven't been created yet.
|
||||
if ( 'yes' === get_transient( 'wc_installing' ) ) {
|
||||
return;
|
||||
}
|
||||
|
||||
$this->update( $category_id );
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue