WordPress.org

Make WordPress Core

Ticket #11223: 11223.diff

File 11223.diff, 449 bytes (added by caesarsgrunt, 5 years ago)
  • wp-admin/comment.php

     
    184184                $redir = wp_get_original_referer(); 
    185185        else 
    186186                $redir = admin_url('edit-comments.php'); 
     187        $redir = remove_query_arg( array('trashed', 'untrashed', 'deleted', 'ids'), $redir ); 
    187188 
    188189        if ( $action == 'trashcomment' ) { 
    189190                wp_trash_comment($comment_id);