From 7211cf62d200e32659f32eb3639ec048100237d7 Mon Sep 17 00:00:00 2001 From: Colin Stewart Date: Sat, 23 Sep 2023 15:36:00 +0000 Subject: [PATCH] REST API: Correct spelling error in `block_hooks` field documentation. In [56587], a spelling error was introduced in the documentation of the new `block_hooks` field in `WP_REST_Block_Types_Controller`. This fixes the spelling error. Follow-up to [56587]. Props kebbet, mukesh27, tahmina1du. Fixes #59426. See #59346. git-svn-id: https://develop.svn.wordpress.org/trunk@56668 602fd350-edb4-49c9-b593-d223f7449a82 --- .../rest-api/endpoints/class-wp-rest-block-types-controller.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-includes/rest-api/endpoints/class-wp-rest-block-types-controller.php b/src/wp-includes/rest-api/endpoints/class-wp-rest-block-types-controller.php index cd174e4aafecf..52f013a9d67c1 100644 --- a/src/wp-includes/rest-api/endpoints/class-wp-rest-block-types-controller.php +++ b/src/wp-includes/rest-api/endpoints/class-wp-rest-block-types-controller.php @@ -708,7 +708,7 @@ public function get_item_schema() { 'keywords' => $keywords_definition, 'example' => $example_definition, 'block_hooks' => array( - 'description' => __( 'This block is automatically inserted near any occurence of the block types used as keys of this map, into a relative position given by the corresponding value.' ), + 'description' => __( 'This block is automatically inserted near any occurrence of the block types used as keys of this map, into a relative position given by the corresponding value.' ), 'type' => 'object', 'patternProperties' => array( '^[a-zA-Z0-9-]+/[a-zA-Z0-9-]+$' => array(