Skip to content

Commit

Permalink
include site transient keys to delete
Browse files Browse the repository at this point in the history
  • Loading branch information
faisal-alvi committed Sep 13, 2024
1 parent 39830c6 commit 548c8a1
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions uninstall.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,16 @@ function delete_site_options() {
'_transient_timeout_dt_',
);

if ( is_multisite() ) {
$option_prefixes = array_merge(
$option_prefixes,
array(
'_site_transient_dt_',
'_site_transient_timeout_dt_',
)
);
}

// Prepare the WHERE clause for the options table.
$where_clause = implode( ' OR ', array_fill( 0, count( $option_prefixes ), "option_name LIKE %s" ) );

Check failure on line 84 in uninstall.php

View workflow job for this annotation

GitHub Actions / phpcs

String "option_name LIKE %s" does not require double quotes; use single quotes instead

Expand Down

0 comments on commit 548c8a1

Please sign in to comment.