Changes between Initial Version and Version 1 of Ticket #34947, comment 2
- Timestamp:
- 12/09/2015 10:37:36 PM (5 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #34947, comment 2
initial v1 16 16 } 17 17 if ( current_user_can( $post_type_obj->cap->read_private_posts ) ) { 18 $query->set( 'post_status', array_merge( 'private', (array) $query->get( 'post_status' ) ) );18 $query->set( 'post_status', array_merge( array( 'private' ), (array) $query->get( 'post_status' ) ) ); 19 19 } 20 20 } );