Make WordPress Core

Changeset 7112


Ignore:
Timestamp:
02/29/2008 10:34:29 PM (18 years ago)
Author:
ryan
Message:

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

File:
1 edited

Legend:

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

    r7102 r7112  
    5252    $post_status_label = $post_stati[$_GET['post_status']][1];
    5353    $post_status_q = '&post_status=' . $_GET['post_status'];
     54    $post_status_q .= '&perm=readable';
    5455}
    5556
     
    7475   
    7576$status_links = array();
    76 $num_posts = wp_count_posts('page');
     77$num_posts = wp_count_posts('page', 'readable');
    7778foreach ( $post_stati as $status => $label ) {
    7879    $class = '';
Note: See TracChangeset for help on using the changeset viewer.