summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--src/wp-includes/rest-api/endpoints/class-wp-rest-block-patterns-controller.php2
-rw-r--r--src/wp-includes/rest-api/endpoints/class-wp-rest-templates-controller.php2
-rw-r--r--tests/qunit/fixtures/wp-api-generated.js4
3 files changed, 4 insertions, 4 deletions
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 60064abf05..cb0fe57fed 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 @@ class WP_REST_Block_Patterns_Controller extends WP_REST_Controller {
'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 e26b4d17e5..8f70cda9f1 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 @@ class WP_REST_Templates_Controller extends WP_REST_Controller {
'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 28936c9551..896322ed48 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
},