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 <getdavemail@gmail.com>
  • Loading branch information
scruffian and getdave authored Jul 19, 2023
1 parent bce949d commit 34e0b30
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 34e0b30

Please sign in to comment.