diff --git a/wp-includes/rest-api/class-wp-rest-server.php b/wp-includes/rest-api/class-wp-rest-server.php index efda2321b7..12de6c55f0 100644 --- a/wp-includes/rest-api/class-wp-rest-server.php +++ b/wp-includes/rest-api/class-wp-rest-server.php @@ -1288,7 +1288,11 @@ class WP_REST_Server { // For non-variable routes, generate links. if ( strpos( $route, '{' ) === false ) { $data['_links'] = array( - 'self' => rest_url( $route ), + 'self' => array( + array( + 'href' => rest_url( $route ), + ), + ), ); } } diff --git a/wp-includes/version.php b/wp-includes/version.php index 33e53faa4a..73fbcf2aca 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.4-beta2-47325'; +$wp_version = '5.4-beta2-47326'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.