Changeset 53110 for trunk/src/wp-includes/rest-api/class-wp-rest-server.php
- Timestamp:
- 04/08/2022 05:27:42 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/rest-api/class-wp-rest-server.php
r52796 r53110 439 439 // Wrap the response in an envelope if asked for. 440 440 if ( isset( $_GET['_envelope'] ) ) { 441 $result = $this->envelope_response( $result, isset( $_GET['_embed'] ) ); 441 $embed = isset( $_GET['_embed'] ) ? rest_parse_embed_param( $_GET['_embed'] ) : false; 442 $result = $this->envelope_response( $result, $embed ); 442 443 } 443 444 … … 731 732 * 732 733 * @since 4.4.0 734 * @since 6.0.0 The $embed parameter can now contain a list of link relations to include 733 735 * 734 736 * @param WP_REST_Response $response Response object. 735 * @param bool $embed Whether links should be embedded.737 * @param bool|string[] $embed Whether to embed all links, a filtered list of link relations, or no links. 736 738 * @return WP_REST_Response New response with wrapped data 737 739 */
Note: See TracChangeset
for help on using the changeset viewer.