From 3738a692a35e04ed9df7962dc5cecef433b063e8 Mon Sep 17 00:00:00 2001 From: duck_ Date: Wed, 4 Apr 2012 17:36:23 +0000 Subject: [PATCH] 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 --- wp-admin/includes/class-wp-comments-list-table.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-admin/includes/class-wp-comments-list-table.php b/wp-admin/includes/class-wp-comments-list-table.php index 5ca6f70f8..b51be78da 100644 --- a/wp-admin/includes/class-wp-comments-list-table.php +++ b/wp-admin/includes/class-wp-comments-list-table.php @@ -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();