Make WordPress Core

Opened 3 years ago

Closed 3 years ago

Last modified 3 years ago

#55243 closed defect (bug) (fixed)

Fix incorrect return type on get_block_metadata_i18n_schema()

Reported by: jeremyfelt's profile jeremyfelt Owned by: audrasjb's profile audrasjb
Milestone: 6.0 Priority: normal
Severity: normal Version:
Component: I18N Keywords: has-patch commit
Focuses: docs Cc:

Description

The value returned by get_block_metadata_i18n_schema() is an object rather than an array.

Change History (4)

This ticket was mentioned in PR #2352 on WordPress/wordpress-develop by jeremyfelt.


3 years ago
#1

This changes the return type from array to object.

Trac ticket: https://core.trac.wordpress.org/ticket/55243

#2 @audrasjb
3 years ago

  • Keywords commit added
  • Milestone changed from Awaiting Review to 6.0
  • Owner set to audrasjb
  • Status changed from new to reviewing

Hello and thanks, the PR looks good to me. Adding to milestone 6.0 and marking for commit consideration.

#3 @audrasjb
3 years ago

  • Resolution set to fixed
  • Status changed from reviewing to closed

In 52793:

Docs: Correct return type for get_block_metadata_i18n_schema().

Props jeremyfelt.
Fixes #55243.
See #54729.

Note: See TracTickets for help on using tickets.