mirror of
git://develop.git.wordpress.org/
synced 2025-02-27 18:13:00 +01:00
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:
parent
d940b723be
commit
168aecd7c1
@ -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'] )
|
||||
|
Loading…
x
Reference in New Issue
Block a user