From e9ceb4a0bbb76f1d63a877b8e47a6e5d51a298a4 Mon Sep 17 00:00:00 2001 From: Brian Date: Wed, 1 Jul 2026 23:18:00 +0200 Subject: [PATCH 1/2] replace function --- src/Admin/Actions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Admin/Actions.php b/src/Admin/Actions.php index b5b44313..00a0fd91 100644 --- a/src/Admin/Actions.php +++ b/src/Admin/Actions.php @@ -80,7 +80,7 @@ public function maybe_redirect_to_wizard() { if ( ! $wizard_done ) { $url = admin_url( 'options-general.php?page=plausible_analytics#welcome_slide' ); - wp_redirect( $url ); + wp_safe_redirect( $url ); exit; } From 71c1763ed4a47a9d04dfe46bb1e622fbe3d916f6 Mon Sep 17 00:00:00 2001 From: Brian Date: Wed, 1 Jul 2026 23:18:45 +0200 Subject: [PATCH 2/2] replace functions --- src/Ajax.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Ajax.php b/src/Ajax.php index 2f05eea0..b29108da 100644 --- a/src/Ajax.php +++ b/src/Ajax.php @@ -159,7 +159,7 @@ private function maybe_handle_redirect( $direction ) { $url .= '#' . $direction; } - wp_redirect( $url ); + wp_safe_redirect( $url ); exit; }