remove dependency check from uninstall script
This commit is contained in:
parent
27dff45d71
commit
4ec10698af
|
@ -8,11 +8,5 @@
|
|||
defined( 'WP_UNINSTALL_PLUGIN' ) || exit;
|
||||
|
||||
require_once dirname( __FILE__ ) . '/woocommerce-admin.php';
|
||||
|
||||
if ( WC_Admin_Feature_Plugin::instance()->check_dependencies() ) {
|
||||
WC_Admin_Feature_Plugin::instance()->includes();
|
||||
} else {
|
||||
require_once dirname( __FILE__ ) . '/includes/class-wc-admin-install.php';
|
||||
}
|
||||
|
||||
require_once dirname( __FILE__ ) . '/includes/class-wc-admin-install.php';
|
||||
WC_Admin_Install::delete_table_data();
|
||||
|
|
|
@ -222,7 +222,7 @@ class WC_Admin_Feature_Plugin {
|
|||
*
|
||||
* @return bool
|
||||
*/
|
||||
public function check_dependencies() {
|
||||
protected function check_dependencies() {
|
||||
$woocommerce_minimum_met = class_exists( 'WooCommerce' ) && version_compare( WC_VERSION, '3.6', '>=' );
|
||||
if ( ! $woocommerce_minimum_met ) {
|
||||
return false;
|
||||
|
|
Loading…
Reference in New Issue