diff --git a/src/wp-includes/rest-api/endpoints/class-wp-rest-block-patterns-controller.php b/src/wp-includes/rest-api/endpoints/class-wp-rest-block-patterns-controller.php index 60064abf05efc..cb0fe57fed290 100644 --- a/src/wp-includes/rest-api/endpoints/class-wp-rest-block-patterns-controller.php +++ b/src/wp-includes/rest-api/endpoints/class-wp-rest-block-patterns-controller.php @@ -187,7 +187,7 @@ public function get_item_schema() { 'context' => array( 'view', 'edit', 'embed' ), ), 'post_types' => array( - 'description' => __( ' An array of post types that the pattern is restricted to be used with.' ), + 'description' => __( 'An array of post types that the pattern is restricted to be used with.' ), 'type' => 'array', 'readonly' => true, 'context' => array( 'view', 'edit', 'embed' ), diff --git a/src/wp-includes/rest-api/endpoints/class-wp-rest-templates-controller.php b/src/wp-includes/rest-api/endpoints/class-wp-rest-templates-controller.php index e26b4d17e5ebe..8f70cda9f1296 100644 --- a/src/wp-includes/rest-api/endpoints/class-wp-rest-templates-controller.php +++ b/src/wp-includes/rest-api/endpoints/class-wp-rest-templates-controller.php @@ -82,7 +82,7 @@ public function register_routes() { 'required' => true, ), 'is_custom' => array( - 'description' => __( ' Indicates if a template is custom or part of the template hierarchy' ), + 'description' => __( 'Indicates if a template is custom or part of the template hierarchy' ), 'type' => 'boolean', ), 'template_prefix' => array( diff --git a/tests/qunit/fixtures/wp-api-generated.js b/tests/qunit/fixtures/wp-api-generated.js index 28936c9551803..896322ed48dfc 100644 --- a/tests/qunit/fixtures/wp-api-generated.js +++ b/tests/qunit/fixtures/wp-api-generated.js @@ -5157,7 +5157,7 @@ mockedApiResponse.Schema = { "required": true }, "is_custom": { - "description": " Indicates if a template is custom or part of the template hierarchy", + "description": "Indicates if a template is custom or part of the template hierarchy", "type": "boolean", "required": false }, @@ -5846,7 +5846,7 @@ mockedApiResponse.Schema = { "required": true }, "is_custom": { - "description": " Indicates if a template is custom or part of the template hierarchy", + "description": "Indicates if a template is custom or part of the template hierarchy", "type": "boolean", "required": false },