Reset notice after restoring a comment from the trash, props caesarsgrunt, fixes #11223

git-svn-id: http://svn.automattic.com/wordpress/trunk@12282 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
azaozz 2009-11-26 08:04:25 +00:00
parent 42379cb215
commit 3fb83c89e9
1 changed files with 2 additions and 0 deletions

View File

@ -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 );