diff options
Diffstat (limited to 'wp-admin/comment.php')
-rw-r--r-- | wp-admin/comment.php | 3 |
1 files changed, 2 insertions, 1 deletions
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'; |