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
This commit is contained in:
Andrew Nacin 2011-01-22 18:27:04 +00:00
parent a399fa0529
commit d59f1e165e
1 changed files with 1 additions and 1 deletions

View File

@ -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' ) ) )