WordPress.org

Make WordPress Core

Ticket #11180: 11180.diff

File 11180.diff, 455 bytes (added by batmoo, 9 years ago)
  • edit-pages.php

     
    198198foreach ( $post_stati as $status => $label ) {
    199199        $class = '';
    200200
    201         if ( !in_array($status, $avail_post_stati) )
     201        if ( !in_array($status, $avail_post_stati) || $num_posts->$status <=0 )
    202202                continue;
    203203
    204204        if ( isset( $_GET['post_status'] ) && $status == $_GET['post_status'] )