WordPress.org

Make WordPress Core

Changeset 4971


Ignore:
Timestamp:
03/06/2007 05:45:40 PM (11 years ago)
Author:
ryan
Message:

Use correct capabilities checks when determining whether to show private posts. Props molecularbear. fixes #3827

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.1/wp-includes/query.php

    r4923 r4971  
    932932            if ( is_user_logged_in() ) {
    933933                if ( 'post' == $post_type )
    934                     $cap = 'edit_private_posts';
     934                    $cap = 'read_private_posts';
    935935                else
    936                     $cap = 'edit_private_pages';
     936                    $cap = 'read_private_pages';
    937937
    938938                if ( current_user_can($cap) )
Note: See TracChangeset for help on using the changeset viewer.