- Timestamp:
- 07/10/2023 11:17:05 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-users-controller.php
r55988 r56195 684 684 $request_params = array_keys( $request->get_params() ); 685 685 sort( $request_params ); 686 // If only 'id' and 'roles' are specified (we are only trying to 687 // edit roles), then only the 'promote_user' cap is required. 686 /* 687 * If only 'id' and 'roles' are specified (we are only trying to 688 * edit roles), then only the 'promote_user' cap is required. 689 */ 688 690 if ( array( 'id', 'roles' ) === $request_params ) { 689 691 return true;
Note: See TracChangeset
for help on using the changeset viewer.