Changeset 56884 for branches/5.8/src/wp-includes/rest-api/endpoints/class-wp-rest-users-controller.php
- Timestamp:
- 10/12/2023 03:14:45 PM (14 months ago)
- Location:
- branches/5.8
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/5.8
- Property svn:mergeinfo changed
/trunk merged: 56833-56838
- Property svn:mergeinfo changed
-
branches/5.8/src/wp-includes/rest-api/endpoints/class-wp-rest-users-controller.php
r51000 r56884 303 303 304 304 if ( ! empty( $prepared_args['search'] ) ) { 305 if ( ! current_user_can( 'list_users' ) ) { 306 $prepared_args['search_columns'] = array( 'ID', 'user_login', 'user_nicename', 'display_name' ); 307 } 305 308 $prepared_args['search'] = '*' . $prepared_args['search'] . '*'; 306 309 }
Note: See TracChangeset
for help on using the changeset viewer.