mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 20:30:23 +00:00
Fix some names and order of filters.
git-svn-id: https://develop.svn.wordpress.org/trunk@7170 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -98,6 +98,8 @@ if ( isset( $_GET['approved'] ) || isset( $_GET['deleted'] ) || isset( $_GET['sp
|
||||
$status_links = array();
|
||||
$num_comments = wp_count_comments();
|
||||
$stati = array('moderated' => sprintf(__('Awaiting Moderation (%s)'), "<span class='comment-count'>$num_comments->moderated</span>"), 'approved' => __('Approved'));
|
||||
$class = ( '' === $comment_status ) ? ' class="current"' : '';
|
||||
$status_links[] = "<li><a href=\"edit-comments.php\"$class>".__('All Comments')."</a>";
|
||||
foreach ( $stati as $status => $label ) {
|
||||
$class = '';
|
||||
|
||||
@@ -106,8 +108,6 @@ foreach ( $stati as $status => $label ) {
|
||||
|
||||
$status_links[] = "<li><a href=\"edit-comments.php?comment_status=$status\"$class>" . $label . '</a>';
|
||||
}
|
||||
$class = ( '' === $comment_status ) ? ' class="current"' : '';
|
||||
$status_links[] = "<li><a href=\"edit-comments.php\"$class>".__('All Comments')."</a>";
|
||||
echo implode(' | </li>', $status_links) . '</li>';
|
||||
unset($status_links);
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user