Add more visibility args to post status registration. see #9674

git-svn-id: https://develop.svn.wordpress.org/trunk@12994 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren
2010-02-06 17:46:00 +00:00
parent 8be3a24819
commit 68db07fb9b
2 changed files with 20 additions and 11 deletions

View File

@@ -232,7 +232,7 @@ $total_posts = array_sum( (array) $num_posts ) - $num_posts->trash;
$class = empty($class) && empty($_GET['post_status']) ? ' class="current"' : '';
$status_links[] = "<li><a href='edit.php?post_type=$post_type{$allposts}'$class>" . sprintf( _nx( 'All <span class="count">(%s)</span>', 'All <span class="count">(%s)</span>', $total_posts, 'posts' ), number_format_i18n( $total_posts ) ) . '</a>';
foreach ( get_post_stati(array(), 'objects') as $status ) {
foreach ( get_post_stati(array('show_in_admin_edit' => true), 'objects') as $status ) {
$class = '';
$status_name = $status->name;