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:
Matt Mullenweg
2008-03-06 10:23:00 +00:00
parent 990f07563c
commit 26a14e222b
6 changed files with 11 additions and 11 deletions
+2 -2
View File
@@ -82,6 +82,8 @@ if ( is_single() ) {
<?php
$status_links = array();
$num_posts = wp_count_posts('post', 'readable');
$class = empty($_GET['post_status']) ? ' class="current"' : '';
$status_links[] = "<li><a href=\"edit.php\"$class>".__('All Posts')."</a>";
foreach ( $post_stati as $status => $label ) {
$class = '';
@@ -96,8 +98,6 @@ foreach ( $post_stati as $status => $label ) {
$status_links[] = "<li><a href=\"edit.php?post_status=$status\"$class>" .
sprintf($label[2], $num_posts->$status) . '</a>';
}
$class = empty($_GET['post_status']) ? ' class="current"' : '';
$status_links[] = "<li><a href=\"edit.php\"$class>".__('All Posts')."</a>";
echo implode(' |</li>', $status_links) . '</li>';
unset($status_links);
?>