From d59f1e165eea6f939c6378b9be0650faf61d32d3 Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Sat, 22 Jan 2011 18:27:04 +0000 Subject: [PATCH] Global comment_type in WP_Comments_List_Table::prepare_items(). props jorbin, fixes #16344. git-svn-id: https://develop.svn.wordpress.org/trunk@17350 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 3d6331498b..90c158fe6a 100644 --- a/wp-admin/includes/class-wp-comments-list-table.php +++ b/wp-admin/includes/class-wp-comments-list-table.php @@ -41,7 +41,7 @@ class WP_Comments_List_Table extends WP_List_Table { } function prepare_items() { - global $post_id, $comment_status, $search; + global $post_id, $comment_status, $search, $comment_type; $comment_status = isset( $_REQUEST['comment_status'] ) ? $_REQUEST['comment_status'] : 'all'; if ( !in_array( $comment_status, array( 'all', 'moderated', 'approved', 'spam', 'trash' ) ) )