Ticket #3827: query.patch
| File query.patch, 405 bytes (added by , 19 years ago) |
|---|
-
query.php
old new 929 929 930 930 if ( is_user_logged_in() ) { 931 931 if ( 'post' == $post_type ) 932 $cap = ' edit_private_posts';932 $cap = 'read_private_posts'; 933 933 else 934 $cap = ' edit_private_pages';934 $cap = 'read_private_pages'; 935 935 936 936 if ( current_user_can($cap) ) 937 937 $where .= " OR post_status = 'private'";