From d90bb2403a9fd468b20f4b4eb66a25beeea6bf67 Mon Sep 17 00:00:00 2001 From: Jon Cave 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: https://develop.svn.wordpress.org/trunk@20350 602fd350-edb4-49c9-b593-d223f7449a82 --- 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 5ca6f70f83..b51be78da8 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();