From 75262781d9e59c510aaadaf568f51515d24441b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Helen=20Hou-Sand=C3=AD?= Date: Wed, 16 Sep 2020 19:23:07 +0000 Subject: [PATCH] i18n: Ensure block type strings in the REST API end with a full stop. Props ramiy, justinahinon. Fixes #50805. Built from https://develop.svn.wordpress.org/trunk@48982 git-svn-id: http://core.svn.wordpress.org/trunk@48744 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/rest-api/class-wp-rest-server.php | 4 ++-- .../endpoints/class-wp-rest-block-renderer-controller.php | 2 +- .../endpoints/class-wp-rest-block-types-controller.php | 4 ++-- wp-includes/version.php | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/wp-includes/rest-api/class-wp-rest-server.php b/wp-includes/rest-api/class-wp-rest-server.php index 3cc26d0573..4f2adb9ffd 100644 --- a/wp-includes/rest-api/class-wp-rest-server.php +++ b/wp-includes/rest-api/class-wp-rest-server.php @@ -923,7 +923,7 @@ class WP_REST_Server { if ( ! is_callable( $handler['callback'] ) ) { $error = new WP_Error( 'rest_invalid_handler', - __( 'The handler for the route is invalid' ), + __( 'The handler for the route is invalid.' ), array( 'status' => 500 ) ); } @@ -1021,7 +1021,7 @@ class WP_REST_Server { return new WP_Error( 'rest_no_route', - __( 'No route was found matching the URL and request method' ), + __( 'No route was found matching the URL and request method.' ), array( 'status' => 404 ) ); } diff --git a/wp-includes/rest-api/endpoints/class-wp-rest-block-renderer-controller.php b/wp-includes/rest-api/endpoints/class-wp-rest-block-renderer-controller.php index 07a389e794..ecb2ec7e44 100644 --- a/wp-includes/rest-api/endpoints/class-wp-rest-block-renderer-controller.php +++ b/wp-includes/rest-api/endpoints/class-wp-rest-block-renderer-controller.php @@ -51,7 +51,7 @@ class WP_REST_Block_Renderer_Controller extends WP_REST_Controller { 'args' => array( 'context' => $this->get_context_param( array( 'default' => 'view' ) ), 'attributes' => array( - 'description' => __( 'Attributes for the block' ), + 'description' => __( 'Attributes for the block.' ), 'type' => 'object', 'default' => array(), 'validate_callback' => static function ( $value, $request ) { diff --git a/wp-includes/rest-api/endpoints/class-wp-rest-block-types-controller.php b/wp-includes/rest-api/endpoints/class-wp-rest-block-types-controller.php index 0306a195e9..5ae139991d 100644 --- a/wp-includes/rest-api/endpoints/class-wp-rest-block-types-controller.php +++ b/wp-includes/rest-api/endpoints/class-wp-rest-block-types-controller.php @@ -87,11 +87,11 @@ class WP_REST_Block_Types_Controller extends WP_REST_Controller { array( 'args' => array( 'name' => array( - 'description' => __( 'Block name' ), + 'description' => __( 'Block name.' ), 'type' => 'string', ), 'namespace' => array( - 'description' => __( 'Block namespace' ), + 'description' => __( 'Block namespace.' ), 'type' => 'string', ), ), diff --git a/wp-includes/version.php b/wp-includes/version.php index 9cc4371360..efdab6ce3c 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.6-alpha-48981'; +$wp_version = '5.6-alpha-48982'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.