Skip to content

Commit

Permalink
No require global wp_roles as executing method via WC_Install::remove…
Browse files Browse the repository at this point in the history
…_roles
  • Loading branch information
shivapoudel committed Feb 6, 2015
1 parent 0939cf0 commit 3b3cb84
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions uninstall.php
Original file line number Diff line number Diff line change
Expand Up @@ -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() );

Expand Down

0 comments on commit 3b3cb84

Please sign in to comment.