Ticket #49150: 49150.patch
File 49150.patch, 550 bytes (added by , 5 years ago) |
---|
-
class-wp-rest-users-controller.php
609 609 sort( $request_params ); 610 610 // If only 'id' and 'roles' are specified (we are only trying to 611 611 // edit roles), then only the 'promote_user' cap is required. 612 if ( $request_params === array( 'id', 'roles' )) {612 if ( array( 'id', 'roles' ) === $request_params ) { 613 613 return true; 614 614 } 615 615 }