mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-07 08:01:54 +01:00
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:
parent
457d2db64b
commit
3738a692a3
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user