Make WordPress Core


Ignore:
Timestamp:
02/29/2008 09:49:49 PM (17 years ago)
Author:
ryan
Message:

Add option to check caps when querying a particular post status. fixes #6052

File:
1 edited

Legend:

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

    r7098 r7109  
    8282<?php
    8383$status_links = array();
    84 $num_posts = wp_count_posts('post');
     84$num_posts = wp_count_posts('post', 'readable');
    8585foreach ( $post_stati as $status => $label ) {
    8686    $class = '';
     
    8989        continue;
    9090
     91    if ( empty($num_posts->$status) )
     92        continue;
    9193    if ( $status == $_GET['post_status'] )
    9294        $class = ' class="current"';
Note: See TracChangeset for help on using the changeset viewer.