Make comment type filter persist across views (e.g. approved, spam) of the list of comments. Fixes #20281.

git-svn-id: https://develop.svn.wordpress.org/trunk@20350 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Jon Cave 2012-04-04 17:36:23 +00:00
parent ecd1caa054
commit d90bb2403a
1 changed files with 1 additions and 1 deletions

View File

@ -136,7 +136,7 @@ class WP_Comments_List_Table extends WP_List_Table {
}
function get_views() {
global $post_id, $comment_status;
global $post_id, $comment_status, $comment_type;
$status_links = array();
$num_comments = ( $post_id ) ? wp_count_comments( $post_id ) : wp_count_comments();