- Timestamp:
- 10/12/2023 12:28:57 PM (14 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-users-controller.php
r56586 r56833 319 319 320 320 if ( ! empty( $prepared_args['search'] ) ) { 321 if ( ! current_user_can( 'list_users' ) ) { 322 $prepared_args['search_columns'] = array( 'ID', 'user_login', 'user_nicename', 'display_name' ); 323 } 321 324 $prepared_args['search'] = '*' . $prepared_args['search'] . '*'; 322 325 }
Note: See TracChangeset
for help on using the changeset viewer.