Skip to content

Commit

Permalink
Update lib/compat/wordpress-6.3/navigation-fallback.php
Browse files Browse the repository at this point in the history
Co-authored-by: Dave Smith <[email protected]>
  • Loading branch information
scruffian and getdave committed Jul 20, 2023
1 parent e4b66c4 commit 750575b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/compat/wordpress-6.3/navigation-fallback.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ function gutenberg_add_fields_to_navigation_fallback_embeded_links( $schema ) {

// Expose sub properties of title field.
// These aren't exposed by the posts controller by default, see:
// https://github.com/WordPress/wordpress-develop/blob/5c3c6258e468c67ba00bbd13db29994f1a57a52a/src/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php#L2401
//$schema['properties']['title']['properties']['raw']['context'] = array_merge( $schema['properties']['title']['properties']['raw']['context'], array( 'embed' ) );
// https://github.com/WordPress/wordpress-develop/blob/5c3c6258e468c67ba00bbd13db29994f1a57a52a/src/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php#L2401.
$schema['properties']['title']['properties']['raw']['context'] = array_merge( $schema['properties']['title']['properties']['raw']['context'], array( 'embed' ) );

return $schema;
}
Expand Down

0 comments on commit 750575b

Please sign in to comment.