From 8a2a5b06c6a5989ebad2a7ac3f6d6358d7182d8d Mon Sep 17 00:00:00 2001 From: Mike Jolley Date: Fri, 14 Feb 2014 11:22:00 +0000 Subject: [PATCH] Trash in the uninstaller too --- uninstall.php | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/uninstall.php b/uninstall.php index 8f6f2c00f2d..7ac3a327576 100644 --- a/uninstall.php +++ b/uninstall.php @@ -21,18 +21,18 @@ $installer = include( 'includes/class-wc-install.php' ); $installer->remove_roles(); // Pages -wp_delete_post( get_option( 'woocommerce_shop_page_id' ), true ); -wp_delete_post( get_option( 'woocommerce_cart_page_id' ), true ); -wp_delete_post( get_option( 'woocommerce_checkout_page_id' ), true ); -wp_delete_post( get_option( 'woocommerce_myaccount_page_id' ), true ); -wp_delete_post( get_option( 'woocommerce_edit_address_page_id' ), true ); -wp_delete_post( get_option( 'woocommerce_view_order_page_id' ), true ); -wp_delete_post( get_option( 'woocommerce_change_password_page_id' ), true ); -wp_delete_post( get_option( 'woocommerce_logout_page_id' ), true ); +wp_trash_post( get_option( 'woocommerce_shop_page_id' ) ); +wp_trash_post( get_option( 'woocommerce_cart_page_id' ) ); +wp_trash_post( get_option( 'woocommerce_checkout_page_id' ) ); +wp_trash_post( get_option( 'woocommerce_myaccount_page_id' ) ); +wp_trash_post( get_option( 'woocommerce_edit_address_page_id' ) ); +wp_trash_post( get_option( 'woocommerce_view_order_page_id' ) ); +wp_trash_post( get_option( 'woocommerce_change_password_page_id' ) ); +wp_trash_post( get_option( 'woocommerce_logout_page_id' ) ); // mijireh checkout page if ( $mijireh_page = get_page_by_path( 'mijireh-secure-checkout' ) ) - wp_delete_post( $mijireh_page->ID, true ); + wp_trash_post( $mijireh_page->ID ); // Tables $wpdb->query( "DROP TABLE IF EXISTS " . $wpdb->prefix . "woocommerce_attribute_taxonomies" );