Changeset 43694 for branches/5.0/src/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php
- Timestamp:
- 10/10/2018 08:48:21 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/5.0/src/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php
r43682 r43694 2499 2499 $post_type_obj = get_post_type_object( $this->post_type ); 2500 2500 2501 if ( current_user_can( $post_type_obj->cap->edit_posts ) ) {2501 if ( current_user_can( $post_type_obj->cap->edit_posts ) || 'private' === $status && current_user_can( $post_type_obj->cap->read_private_posts ) ) { 2502 2502 $result = rest_validate_request_arg( $status, $request, $parameter ); 2503 2503 if ( is_wp_error( $result ) ) {
Note: See TracChangeset
for help on using the changeset viewer.