remove dependency check from uninstall script

This commit is contained in:
Ron Rennick 2019-08-08 13:35:35 -03:00
parent 27dff45d71
commit 4ec10698af
2 changed files with 2 additions and 8 deletions

View File

@ -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();

View File

@ -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;