Make WordPress Core

Opened 3 months ago

Closed 3 months ago

Last modified 3 months 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's profile kebbet Owned by: costdev's profile costdev
Milestone: 6.4 Priority: normal
Severity: normal Version: 6.4
Component: REST API Keywords: has-patch commit
Focuses: Cc:

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 months ago.

Download all attachments as: .zip

Change History (7)

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


3 months ago
#1

  • Keywords has-patch added; needs-patch removed

#2 @mukesh27
3 months ago

  • Keywords commit added
  • Milestone changed from Awaiting Review to 6.4
  • Version changed from 5.5 to trunk

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

#3 @costdev
3 months ago

  • Owner set to costdev
  • Status changed from new to reviewing

#4 @tahmina1du
3 months ago

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

@tahmina1du
3 months ago

#5 @costdev
3 months ago

  • Resolution set to fixed
  • Status changed from reviewing to 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 months ago
#6

Thanks for the PR! Merged in r56668.

Note: See TracTickets for help on using tickets.