From 0e41b5d52fdc6af6442816b5f465c9db9f84e126 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Thu, 19 Sep 2024 06:51:18 +0200 Subject: Adding upstream version 6.6.1+dfsg1. Signed-off-by: Daniel Baumann --- wp-admin/comment.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'wp-admin/comment.php') diff --git a/wp-admin/comment.php b/wp-admin/comment.php index 349a32a..e105869 100644 --- a/wp-admin/comment.php +++ b/wp-admin/comment.php @@ -16,7 +16,8 @@ $submenu_file = 'edit-comments.php'; * @global string $action */ global $action; -wp_reset_vars( array( 'action' ) ); + +$action = ! empty( $_REQUEST['action'] ) ? sanitize_text_field( $_REQUEST['action'] ) : ''; if ( isset( $_POST['deletecomment'] ) ) { $action = 'deletecomment'; -- cgit v1.2.3