From 39775c11110135db967ee717b4b091218decb971 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Greg=20Zi=C3=83=C2=B3=C3=85=E2=80=9Akowski?= Date: Mon, 11 Apr 2022 15:35:56 +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. git-svn-id: https://develop.svn.wordpress.org/trunk@53139 602fd350-edb4-49c9-b593-d223f7449a82 --- .../rest-api/endpoints/class-wp-rest-comments-controller.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wp-includes/rest-api/endpoints/class-wp-rest-comments-controller.php b/src/wp-includes/rest-api/endpoints/class-wp-rest-comments-controller.php index c2d9e87635..7908257c3e 100644 --- a/src/wp-includes/rest-api/endpoints/class-wp-rest-comments-controller.php +++ b/src/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, ); }