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

git-svn-id: https://develop.svn.wordpress.org/trunk@15633 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
scribu 2010-09-18 19:51:53 +00:00
parent 2e97d45693
commit 523e35615c
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;
$status_map = array(
'moderated' => 'hold',
'approved' => 'approve'
);
$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,
'offset' => $start,
'number' => $number,