Make WordPress Core

Opened 5 years ago

Closed 5 years ago

Last modified 5 years ago

#55243 closed defect (bug) (fixed)

Fix incorrect return type on get_block_metadata_i18n_schema()

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

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.


5 years ago
#1

This changes the return type from array to object.

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

#2 @audrasjb
5 years ago

  • Keywords commit added
  • Milestone Awaiting Review6.0
  • Owner set to audrasjb
  • Status newreviewing

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

#3 @audrasjb
5 years ago

  • Resolutionfixed
  • Status reviewingclosed

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.