mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-11 02:49:04 +01:00
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:
parent
4e09fd327c
commit
bfd2b650ee
@ -198,7 +198,7 @@ $status_links[] = "<li><a href='edit-pages.php'$class>" . sprintf( _nx( 'All <sp
|
|||||||
foreach ( $post_stati as $status => $label ) {
|
foreach ( $post_stati as $status => $label ) {
|
||||||
$class = '';
|
$class = '';
|
||||||
|
|
||||||
if ( !in_array($status, $avail_post_stati) )
|
if ( !in_array($status, $avail_post_stati) || $num_posts->$status <= 0 )
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if ( isset( $_GET['post_status'] ) && $status == $_GET['post_status'] )
|
if ( isset( $_GET['post_status'] ) && $status == $_GET['post_status'] )
|
||||||
|
Loading…
Reference in New Issue
Block a user