Replace wp_redirect() with wp_safe_redirect()

This redirect always goes back to the "Plugins" page on the same site, so this should be fine.

Reported in #597
This commit is contained in:
Yahnis Elsts 2025-07-22 14:27:13 +03:00
parent e39f84488e
commit 5dfd5e5d1e

View file

@ -187,7 +187,7 @@ if ( !class_exists(Ui::class, false) ):
} }
} }


wp_redirect(add_query_arg( wp_safe_redirect(add_query_arg(
array( array(
'puc_update_check_result' => $status, 'puc_update_check_result' => $status,
'puc_slug' => $this->updateChecker->slug, 'puc_slug' => $this->updateChecker->slug,