[wp-trac] [WordPress Trac] #53238: Blocks: Add support for `variations in `block.json` file

WordPress Trac noreply at wordpress.org
Wed Aug 11 09:06:45 UTC 2021


#53238: Blocks: Add support for `variations in `block.json` file
--------------------------------------+---------------------
 Reporter:  gziolo                    |       Owner:  gziolo
     Type:  enhancement               |      Status:  closed
 Priority:  normal                    |   Milestone:  5.9
Component:  Editor                    |     Version:  5.8
 Severity:  normal                    |  Resolution:  fixed
 Keywords:  has-patch has-unit-tests  |     Focuses:
--------------------------------------+---------------------
Changes (by gziolo):

 * status:  assigned => closed
 * resolution:   => fixed


Comment:

 In [changeset:"51599" 51599]:
 {{{
 #!CommitTicketReference repository="" revision="51599"
 Blocks: Add support for `variations in `block.json` file

 We integrated variations with block types and the corresponding REST API
 endpoint in #52688. It's a follow-up patch to add missing support to the
 `block.json` metadata file when using `register_block_type`.

 Some fields for variations are translatable.Therefore, i18n schema was
 copied over from Gutenberg:
 https://github.com/WordPress/gutenberg/blob/trunk/packages/blocks/src/api
 /i18n-block.json. The accompanying implementation was adapted as
 `translate_settings_using_i18n_schema`.

 Props: gwwar, swissspidy, schlessera, jorgefilipecosta.
 Fixes #53238.
 }}}

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


More information about the wp-trac mailing list