Changeset 53760 for trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-application-passwords-controller.php
- Timestamp:
- 07/22/2022 01:58:46 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-application-passwords-controller.php
r53724 r53760 611 611 } 612 612 613 $fields = $this->get_fields_for_response( $request ); 614 613 615 $prepared = array( 614 616 'uuid' => $item['uuid'], … … 628 630 629 631 $response = new WP_REST_Response( $prepared ); 630 $response->add_links( $this->prepare_links( $user, $item ) ); 632 633 if ( rest_is_field_included( '_links', $fields ) || rest_is_field_included( '_embedded', $fields ) ) { 634 $response->add_links( $this->prepare_links( $user, $item ) ); 635 } 631 636 632 637 /**
Note: See TracChangeset
for help on using the changeset viewer.