Make WordPress Core


Ignore:
Timestamp:
09/18/2010 07:51:53 PM (14 years ago)
Author:
scribu
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/default-list-tables.php

    r15632 r15633  
    20722072        $start = $offset = ( $page - 1 ) * $comments_per_page;
    20732073
     2074        $status_map = array(
     2075            'moderated' => 'hold',
     2076            'approved' => 'approve'
     2077        );
     2078
    20742079        $args = array(
    2075             'status' => ( 'moderated' == $comment_status ) ? 'hold' : $comment_status, // TODO: replace all instances of 'moderated' with 'hold'
     2080            'status' => isset( $status_map[$comment_status] ) ? $status_map[$comment_status] : $comment_status,
    20762081            'search' => $search,
    20772082            'offset' => $start,
Note: See TracChangeset for help on using the changeset viewer.