WordPress.org

Make WordPress Core

Changeset 12219


Ignore:
Timestamp:
11/19/09 17:04:44 (5 years ago)
Author:
ryan
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/edit-pages.php

    r12162 r12219  
    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 
Note: See TracChangeset for help on using the changeset viewer.