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

git-svn-id: http://svn.automattic.com/wordpress/trunk@20350 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
duck_ 2012-04-04 17:36:23 +00:00
parent 457d2db64b
commit 3738a692a3

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