diff --git a/wp-includes/embed.php b/wp-includes/embed.php
index 33d7d8b832..c7dfd38761 100644
--- a/wp-includes/embed.php
+++ b/wp-includes/embed.php
@@ -336,10 +336,10 @@ function wp_oembed_add_discovery_links() {
$output = '';
if ( is_singular() ) {
- $output .= '' . "\n";
+ $output .= '' . "\n";
if ( class_exists( 'SimpleXMLElement' ) ) {
- $output .= '' . "\n";
+ $output .= '' . "\n";
}
}
diff --git a/wp-includes/rest-api.php b/wp-includes/rest-api.php
index 8b791d4417..7aa2534520 100644
--- a/wp-includes/rest-api.php
+++ b/wp-includes/rest-api.php
@@ -1007,7 +1007,11 @@ function rest_output_link_wp_head() {
$resource = rest_get_queried_resource_route();
if ( $resource ) {
- printf( '', esc_url( rest_url( $resource ) ) );
+ printf(
+ '',
+ _x( 'JSON', 'REST API resource link name' ),
+ esc_url( rest_url( $resource ) )
+ );
}
}
@@ -1032,7 +1036,14 @@ function rest_output_link_header() {
$resource = rest_get_queried_resource_route();
if ( $resource ) {
- header( sprintf( 'Link: <%s>; rel="alternate"; type="application/json"', sanitize_url( rest_url( $resource ) ) ), false );
+ header(
+ sprintf(
+ 'Link: <%1$s>; rel="alternate"; title="%2$s"; type="application/json"',
+ sanitize_url( rest_url( $resource ) ),
+ _x( 'JSON', 'REST API resource link name' )
+ ),
+ false
+ );
}
}
diff --git a/wp-includes/version.php b/wp-includes/version.php
index 1bb5c89dc2..f0a30ba153 100644
--- a/wp-includes/version.php
+++ b/wp-includes/version.php
@@ -16,7 +16,7 @@
*
* @global string $wp_version
*/
-$wp_version = '6.6-alpha-58285';
+$wp_version = '6.6-alpha-58286';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.