WordPress.org

Make WordPress Core

Opened 2 months ago

Last modified 2 months ago

#47017 new defect (bug)

Blocks: Expose more fields for blocks registered on the server

Reported by: gziolo Owned by:
Milestone: 5.3 Priority: normal
Severity: normal Version:
Component: Editor Keywords:
Focuses: Cc:

Description (last modified by gziolo)

Discovered when working on Block Registration API RFC (https://github.com/WordPress/gutenberg/pull/13693) and doing an audit of fields exposed for the blocks registered on the server.

It turns out that there are 2 fields that we need to expose to make it possible to reuse them on the client:

  • styles
  • parent

It looks like there were omitted by accident during 5.0 release because they were never registered on the server in WordPress core.

Attachments (1)

patch.diff (739 bytes) - added by gziolo 2 months ago.

Download all attachments as: .zip

Change History (5)

#1 @desrosj
2 months ago

  • Milestone changed from Awaiting Review to Future Release

@gziolo
2 months ago

#2 @gziolo
2 months ago

  • Description modified (diff)

#3 @gziolo
2 months ago

  • Type changed from enhancement to defect (bug)

#4 @SergeyBiryukov
2 months ago

  • Milestone changed from Future Release to 5.3
Note: See TracTickets for help on using tickets.