shareyourcart is no longer part of core, so no uninstaller needed

This commit is contained in:
Mike Jolley 2014-08-18 13:45:24 +01:00
parent 421de8f668
commit 44bdf27986
1 changed files with 2 additions and 4 deletions

View File

@ -9,7 +9,7 @@
* @package WooCommerce/Uninstaller
* @version 2.1.0
*/
if( ! defined( 'WP_UNINSTALL_PLUGIN' ) )
if( ! defined( 'WP_UNINSTALL_PLUGIN' ) )
exit();
global $wpdb, $wp_roles;
@ -38,8 +38,6 @@ if ( $mijireh_page = get_page_by_path( 'mijireh-secure-checkout' ) )
$wpdb->query( "DROP TABLE IF EXISTS " . $wpdb->prefix . "woocommerce_attribute_taxonomies" );
$wpdb->query( "DROP TABLE IF EXISTS " . $wpdb->prefix . "woocommerce_downloadable_product_permissions" );
$wpdb->query( "DROP TABLE IF EXISTS " . $wpdb->prefix . "woocommerce_termmeta" );
$wpdb->query( "DROP TABLE IF EXISTS " . $wpdb->base_prefix . "shareyourcart_tokens" );
$wpdb->query( "DROP TABLE IF EXISTS " . $wpdb->base_prefix . "shareyourcart_coupons" );
$wpdb->query( "DROP TABLE IF EXISTS " . $wpdb->prefix . "woocommerce_tax_rates" );
$wpdb->query( "DROP TABLE IF EXISTS " . $wpdb->prefix . "woocommerce_tax_rate_locations" );
@ -52,4 +50,4 @@ if ( ! empty( $status_options['uninstall_data'] ) ) {
$wpdb->query( "DELETE FROM {$wpdb->postmeta} meta LEFT JOIN {$wpdb->posts} posts ON posts.ID = meta.post_id WHERE wp.ID IS NULL;" );
$wpdb->query( "DROP TABLE IF EXISTS " . $wpdb->prefix . "woocommerce_order_items" );
$wpdb->query( "DROP TABLE IF EXISTS " . $wpdb->prefix . "woocommerce_order_itemmeta" );
}
}