Make WordPress Core

Opened 3 years ago

Closed 3 years ago

Last modified 3 years ago

#59426 closed defect (bug) (fixed)

Spelling mistake in `get_item_schema` in `/wp-includes/rest-api/endpoints/class-wp-rest-block-types-controller.php`

Reported by: kebbet Owned by: costdev
Priority: normal Milestone: 6.4
Component: REST API Version: 6.4
Severity: normal Keywords: has-patch commit
Cc: Focuses:

Description

There is a spelling mistake in get_item_schema in /wp-includes/rest-api/endpoints/class-wp-rest-block-types-controller.php on line 711.

  • occurence should be occurrence
  • Before: 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.
  • After: 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.

Attachments (1)

typo.png​ (354.6 KB ) - added by tahmina1du 3 years ago.

Download all attachments as: .zip

Change History (7)

This ticket was mentioned in ​PR #5280 on ​WordPress/wordpress-develop by ​@kebbet.


3 years ago
#1

  • Keywords has-patch added; needs-patch removed

#2 @mukesh27
3 years ago

  • Keywords commit added
  • Milestone Awaiting Review → 6.4
  • Version 5.5 → trunk

Good catch, introduced in [56587] / #59313.

#3 @costdev
3 years ago

  • Owner set to costdev
  • Status new → reviewing

#4 @tahmina1du
3 years ago

I searched the latest trunk with the word occurence and found 1 result.
So PR is alright.

@tahmina1du
3 years ago

#5 @costdev
3 years ago

  • Resolution → fixed
  • Status reviewing → closed

In 56668:

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.

​@costdev commented on ​PR #5280:


3 years ago
#6

Thanks for the PR! Merged in r56668.

Note: See TracTickets for help on using tickets.