Skip to content

Commit

Permalink
Update uninstaller.php
Browse files Browse the repository at this point in the history
  • Loading branch information
ajaydsouza committed Nov 30, 2024
1 parent e2f2f8a commit ca956da
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions uninstaller.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@
function bsearch_delete_data() {
global $wpdb;

if ( is_plugin_active( 'better-search-pro/better-search.php' ) ) {
return;
}

if ( defined( 'BETTER_SEARCH_DELETE_DATA' ) && BETTER_SEARCH_DELETE_DATA ) {
$wpdb->query( 'DROP TABLE ' . $wpdb->prefix . 'bsearch' ); //phpcs:ignore WordPress.DB.DirectDatabaseQuery.SchemaChange,WordPress.DB.DirectDatabaseQuery.NoCaching,WordPress.DB.DirectDatabaseQuery.DirectQuery
$wpdb->query( 'DROP TABLE ' . $wpdb->prefix . 'bsearch_daily' ); //phpcs:ignore WordPress.DB.DirectDatabaseQuery.SchemaChange,WordPress.DB.DirectDatabaseQuery.NoCaching,WordPress.DB.DirectDatabaseQuery.DirectQuery
Expand Down

0 comments on commit ca956da

Please sign in to comment.