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:
Mike Jolley 2015-02-10 10:45:44 +00:00
commit 67610286f7
1 changed files with 7 additions and 7 deletions

View File

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