Don't show page statuses with 0 pages. Props batmoo. fixes #11180

git-svn-id: https://develop.svn.wordpress.org/trunk@12219 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2009-11-19 17:04:44 +00:00
parent d940b723be
commit 168aecd7c1

View File

@ -198,7 +198,7 @@ $status_links[] = "<li><a href='edit-pages.php'$class>" . sprintf( _nx( 'All <sp
foreach ( $post_stati as $status => $label ) {
$class = '';
if ( !in_array($status, $avail_post_stati) )
if ( !in_array($status, $avail_post_stati) || $num_posts->$status <= 0 )
continue;
if ( isset( $_GET['post_status'] ) && $status == $_GET['post_status'] )