Skip to content

Commit

Permalink
Merge pull request #130 from a8cteam51/fix/db-name
Browse files Browse the repository at this point in the history
Remove prefix from table names
  • Loading branch information
GeoJunkie authored Sep 12, 2024
2 parents f0a1b51 + b532372 commit 6fe540b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions includes/delete.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion safety-net.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6fe540b

Please sign in to comment.