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/includes/post.php

    r7103 r7109  
    514514
    515515    $post_status_q = '';
    516     if ( isset($q['post_status']) && in_array( $q['post_status'], array_keys($post_stati) ) )
     516    if ( isset($q['post_status']) && in_array( $q['post_status'], array_keys($post_stati) ) ) {
    517517        $post_status_q = '&post_status=' . $q['post_status'];
     518        $post_status_q .= '&perm=readable';
     519    }
    518520
    519521    if ( 'pending' === $q['post_status'] ) {
Note: See TracChangeset for help on using the changeset viewer.