Make WordPress Core

Opened 6 months ago

Closed 5 months ago

Last modified 2 months ago

#59797 closed enhancement (fixed)

Blocks: Add new global attribute `metadata`

Reported by: bernhard-reiter's profile Bernhard Reiter Owned by: bernhard-reiter's profile Bernhard Reiter
Milestone: 6.5 Priority: normal
Severity: normal Version: 6.4
Component: Editor Keywords: has-patch has-unit-tests add-to-field-guide
Focuses: Cc:

Description

For use cases such as allowing the user to assign custom names to blocks or for making Block Hooks work with user-modified templates/parts/patterns (#59646), there's a requirement for a new global attribute (i.e. an attribute that can be added to all and any blocks) to hold that sort of metadata.

Originally reported by @get_dave in https://github.com/WordPress/gutenberg/issues/55194.

Change History (4)

#1 @gziolo
6 months ago

  • Keywords has-patch has-unit-tests added

#2 @gziolo
6 months ago

  • Component changed from General to Editor
  • Version set to trunk

#3 @Bernhard Reiter
5 months ago

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

In 57068:

Block Types: Add metadata global attribute.

Add a new global attribute (i.e. an attribute that can be added to all and any blocks) called metadata. This is required for use cases such as allowing the user to assign custom names to blocks, or for making Block Hooks work with user-modified templates/parts/patterns (#59646).

Props Mamaduka, gziolo, get_dave.
Fixes #59797.

#4 @stevenlinx
2 months ago

  • Keywords add-to-field-guide added
Note: See TracTickets for help on using tickets.