From 548c8a175042f6ea524ed301de18514ed0b2c692 Mon Sep 17 00:00:00 2001 From: faisal-alvi Date: Fri, 13 Sep 2024 20:05:34 +0530 Subject: [PATCH] include site transient keys to delete --- uninstall.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/uninstall.php b/uninstall.php index 018721c91..b01851ef1 100644 --- a/uninstall.php +++ b/uninstall.php @@ -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" ) );