From c70cf53090a2e6924f9670bf3d38b0d1a8c63e66 Mon Sep 17 00:00:00 2001 From: Andrew Ozz Date: Thu, 26 Nov 2009 08:04:25 +0000 Subject: [PATCH] Reset notice after restoring a comment from the trash, props caesarsgrunt, fixes #11223 git-svn-id: https://develop.svn.wordpress.org/trunk@12282 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/comment.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/wp-admin/comment.php b/wp-admin/comment.php index fe1609efb1..f1ac3ef35f 100644 --- a/wp-admin/comment.php +++ b/wp-admin/comment.php @@ -185,6 +185,8 @@ case 'untrashcomment' : else $redir = admin_url('edit-comments.php'); + $redir = remove_query_arg( array('trashed', 'untrashed', 'deleted', 'ids'), $redir ); + if ( $action == 'trashcomment' ) { wp_trash_comment($comment_id); $redir = add_query_arg( array('trashed' => '1', 'ids' => $comment_id), $redir );