From 64822222a4964ba8db9ec404688b4fd60de41762 Mon Sep 17 00:00:00 2001 From: Mike Straw Date: Thu, 12 Sep 2024 09:43:46 -0400 Subject: [PATCH 1/2] Remove prefix from table names --- includes/delete.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/delete.php b/includes/delete.php index f1b8eb8..94d4630 100644 --- a/includes/delete.php +++ b/includes/delete.php @@ -69,8 +69,8 @@ function delete_users_and_orders() { // Delete Woo payment tokens $table_name = $wpdb->prefix . 'woocommerce_payment_tokens'; if ( $wpdb->get_var( $wpdb->prepare( 'SHOW TABLES LIKE %s', $table_name ) ) === $table_name ) { - $wpdb->query( "DELETE FROM {$wpdb->prefix}wp_woocommerce_payment_tokens" ); - $wpdb->query( "DELETE FROM {$wpdb->prefix}wp_woocommerce_payment_tokenmeta" ); + $wpdb->query( "DELETE FROM {$wpdb->prefix}woocommerce_payment_tokens" ); + $wpdb->query( "DELETE FROM {$wpdb->prefix}woocommerce_payment_tokenmeta" ); } // Delete Woo customers and analytics From b53237229202d44a09f115c2ddc713af3be31695 Mon Sep 17 00:00:00 2001 From: Mike Straw Date: Thu, 12 Sep 2024 09:47:12 -0400 Subject: [PATCH 2/2] Bump version --- safety-net.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/safety-net.php b/safety-net.php index a78299c..b480245 100644 --- a/safety-net.php +++ b/safety-net.php @@ -2,7 +2,7 @@ /* * Plugin Name: Safety Net * Description: For Team51 Development Sites. Deletes user data and more! - * Version: 1.4.18 + * Version: 1.4.19 * Author: WordPress.com Special Projects * Author URI: https://wpspecialprojects.wordpress.com * Text Domain: safety-net