Changeset 7112

Show
Ignore:
Timestamp:
02/29/08 22:34:29 (9 months ago)
Author:
ryan
Message:

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

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • 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 = '';