Changeset 56862 for branches/4.7/src/wp-includes/rest-api/endpoints/class-wp-rest-users-controller.php
- Timestamp:
- 10/12/2023 02:48:17 PM (12 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/4.7/src/wp-includes/rest-api/endpoints/class-wp-rest-users-controller.php
r40426 r56862 260 260 261 261 if ( ! empty( $prepared_args['search'] ) ) { 262 if ( ! current_user_can( 'list_users' ) ) { 263 $prepared_args['search_columns'] = array( 'ID', 'user_login', 'user_nicename', 'display_name' ); 264 } 262 265 $prepared_args['search'] = '*' . $prepared_args['search'] . '*'; 263 266 }
Note: See TracChangeset
for help on using the changeset viewer.