From 8b207b79677f73ae8018648ea25bf04cb357a776 Mon Sep 17 00:00:00 2001 From: gziolo Date: Mon, 11 Apr 2022 15:37:09 +0000 Subject: [PATCH] REST API: Fix the wrong name in the comments controller It should be `embeddable` not `embedded`. Follow-up [53138]. Props timothyblynjacobs. See #55505. Built from https://develop.svn.wordpress.org/trunk@53139 git-svn-id: http://core.svn.wordpress.org/trunk@52728 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- .../rest-api/endpoints/class-wp-rest-comments-controller.php | 4 ++-- wp-includes/version.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/wp-includes/rest-api/endpoints/class-wp-rest-comments-controller.php b/wp-includes/rest-api/endpoints/class-wp-rest-comments-controller.php index c2d9e87635..7908257c3e 100644 --- a/wp-includes/rest-api/endpoints/class-wp-rest-comments-controller.php +++ b/wp-includes/rest-api/endpoints/class-wp-rest-comments-controller.php @@ -1196,8 +1196,8 @@ class WP_REST_Comments_Controller extends WP_REST_Controller { $rest_url = add_query_arg( $args, rest_url( $this->namespace . '/' . $this->rest_base ) ); $links['children'] = array( - 'href' => $rest_url, - 'embedded' => true, + 'href' => $rest_url, + 'embeddable' => true, ); } diff --git a/wp-includes/version.php b/wp-includes/version.php index 2bb6e23f62..63852870de 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.0-alpha-53138'; +$wp_version = '6.0-alpha-53139'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.