Merge pull request #7321 from shivapoudel/uninstall
No require global wp_roles as executing method via WC_Install::remove_ro...
This commit is contained in:
commit
67610286f7
|
@ -2,18 +2,18 @@
|
|||
/**
|
||||
* WooCommerce Uninstall
|
||||
*
|
||||
* Uninstalling WooCommerce deletes user roles, options, tables, and pages.
|
||||
* Uninstalling WooCommerce deletes user roles, pages, tables, and options.
|
||||
*
|
||||
* @author WooThemes
|
||||
* @category Core
|
||||
* @package WooCommerce/Uninstaller
|
||||
* @version 2.1.0
|
||||
* @author WooThemes
|
||||
* @category Core
|
||||
* @package WooCommerce/Uninstaller
|
||||
* @version 2.3.0
|
||||
*/
|
||||
if( ! defined( 'WP_UNINSTALL_PLUGIN' ) ) {
|
||||
exit();
|
||||
exit;
|
||||
}
|
||||
|
||||
global $wpdb, $wp_roles;
|
||||
global $wpdb;
|
||||
|
||||
$status_options = get_option( 'woocommerce_status_options', array() );
|
||||
|
||||
|
|
Loading…
Reference in New Issue