Changeset 39844 for branches/4.7/src/wp-includes/rest-api/endpoints/class-wp-rest-users-controller.php
- Timestamp:
- 01/11/2017 02:48:04 PM (9 years ago)
- Location:
- branches/4.7
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
src/wp-includes/rest-api/endpoints/class-wp-rest-users-controller.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/4.7
-
branches/4.7/src/wp-includes/rest-api/endpoints/class-wp-rest-users-controller.php
r39631 r39844 249 249 250 250 if ( ! current_user_can( 'list_users' ) ) { 251 $prepared_args['has_published_posts'] = true;251 $prepared_args['has_published_posts'] = get_post_types( array( 'show_in_rest' => true ), 'names' ); 252 252 } 253 253
Note: See TracChangeset
for help on using the changeset viewer.