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

git-svn-id: http://svn.automattic.com/wordpress/trunk@12219 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2009-11-19 17:04:44 +00:00
parent 4e09fd327c
commit bfd2b650ee

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'] )