- Timestamp:
- 05/03/2018 06:51:38 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-users-controller.php
r43087 r43137 197 197 $types = get_post_types( array( 'show_in_rest' => true ), 'objects' ); 198 198 foreach ( $types as $type ) { 199 if ( current_user_can( $type->cap->edit_posts ) ) { 199 if ( post_type_supports( $type->name, 'author' ) 200 && current_user_can( $type->cap->edit_posts ) ) { 200 201 $can_view = true; 201 202 }
Note: See TracChangeset
for help on using the changeset viewer.