- Timestamp:
- 01/11/2017 02:13:48 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-users-controller.php
r39671 r39843 250 250 251 251 if ( ! current_user_can( 'list_users' ) ) { 252 $prepared_args['has_published_posts'] = true;252 $prepared_args['has_published_posts'] = get_post_types( array( 'show_in_rest' => true ), 'names' ); 253 253 } 254 254
Note: See TracChangeset
for help on using the changeset viewer.