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
This commit is contained in:
parent
437db709fc
commit
c70cf53090
|
@ -185,6 +185,8 @@ case 'untrashcomment' :
|
||||||
else
|
else
|
||||||
$redir = admin_url('edit-comments.php');
|
$redir = admin_url('edit-comments.php');
|
||||||
|
|
||||||
|
$redir = remove_query_arg( array('trashed', 'untrashed', 'deleted', 'ids'), $redir );
|
||||||
|
|
||||||
if ( $action == 'trashcomment' ) {
|
if ( $action == 'trashcomment' ) {
|
||||||
wp_trash_comment($comment_id);
|
wp_trash_comment($comment_id);
|
||||||
$redir = add_query_arg( array('trashed' => '1', 'ids' => $comment_id), $redir );
|
$redir = add_query_arg( array('trashed' => '1', 'ids' => $comment_id), $redir );
|
||||||
|
|
Loading…
Reference in New Issue