Changeset 5959
- Timestamp:
- 09/22/2017 09:49:13 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/handbook/inc/widgets.php
r3485 r5959 46 46 if ( in_array( $post->post_type, $this->post_types ) ) { 47 47 $args['post_type'] = $post->post_type; 48 } 49 50 $post_type_obj = get_post_type_object( $post->post_type ); 51 52 if ( current_user_can( $post_type_obj->cap->read_private_posts ) ) { 53 $args['post_status'] = array( 'publish', 'private' ); 48 54 } 49 55
Note: See TracChangeset
for help on using the changeset viewer.