[wp-trac] [WordPress Trac] #47017: Blocks: Expose more fields for blocks registered on the server

WordPress Trac noreply at wordpress.org
Tue Apr 23 14:38:06 UTC 2019


#47017: Blocks: Expose more fields for blocks registered on the server
-------------------------+-----------------------------
 Reporter:  gziolo       |       Owner:  (none)
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Future Release
Component:  Editor       |     Version:
 Severity:  normal       |  Resolution:
 Keywords:               |     Focuses:
-------------------------+-----------------------------
Description changed by gziolo:

Old description:

> 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`

New description:

 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.

--

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/47017#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list