Map 'approved' comment view to 'approve' comment status. See #14579

git-svn-id: http://svn.automattic.com/wordpress/trunk@15633 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
scribu 2010-09-18 19:51:53 +00:00
parent a3bcc7c63c
commit 6d53e83463
1 changed files with 6 additions and 1 deletions

View File

@ -2071,8 +2071,13 @@ class WP_Comments_Table extends WP_List_Table {
$start = $offset = ( $page - 1 ) * $comments_per_page; $start = $offset = ( $page - 1 ) * $comments_per_page;
$status_map = array(
'moderated' => 'hold',
'approved' => 'approve'
);
$args = array( $args = array(
'status' => ( 'moderated' == $comment_status ) ? 'hold' : $comment_status, // TODO: replace all instances of 'moderated' with 'hold' 'status' => isset( $status_map[$comment_status] ) ? $status_map[$comment_status] : $comment_status,
'search' => $search, 'search' => $search,
'offset' => $start, 'offset' => $start,
'number' => $number, 'number' => $number,