From ee4dde5835575a587363421279f5155c44b369cb Mon Sep 17 00:00:00 2001 From: Allen Snook Date: Sun, 4 Nov 2018 17:50:53 -0500 Subject: [PATCH] Do not attempt to run table setup without dependency check first --- plugins/woocommerce-admin/wc-admin.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/plugins/woocommerce-admin/wc-admin.php b/plugins/woocommerce-admin/wc-admin.php index 709e32d847c..a46eb430790 100755 --- a/plugins/woocommerce-admin/wc-admin.php +++ b/plugins/woocommerce-admin/wc-admin.php @@ -98,6 +98,10 @@ register_deactivation_hook( WC_ADMIN_PLUGIN_FILE, 'deactivate_wc_admin_plugin' ) * update automatically. */ function wc_admin_init() { + if ( ! dependencies_satisfied() ) { + return; + } + // Only create/update tables on init if WP_DEBUG is true. if ( defined( 'WP_DEBUG' ) && WP_DEBUG ) { WC_Admin_Api_Init::create_db_tables();