[wp-trac] [WordPress Trac] #52301: Blocks: Add i18n support to register_block_type_from_metadata

WordPress Trac noreply at wordpress.org
Tue Jan 19 11:49:15 UTC 2021


#52301: Blocks: Add i18n support to register_block_type_from_metadata
--------------------------------------+---------------------
 Reporter:  gziolo                    |       Owner:  gziolo
     Type:  enhancement               |      Status:  closed
 Priority:  normal                    |   Milestone:  5.7
Component:  Editor                    |     Version:  trunk
 Severity:  normal                    |  Resolution:  fixed
 Keywords:  has-patch has-unit-tests  |     Focuses:
--------------------------------------+---------------------

Comment (by gziolo):

 In [changeset:"49982" 49982]:
 {{{
 #!CommitTicketReference repository="" revision="49982"
 Blocks: Add automatic RTL handlind for block styles registered from
 metadata

 Related Gutenberg issue: https://github.com/WordPress/gutenberg/pull/28274

 With this change it is going to be possible to use the same pattern that
 wp_style_add_data uses for RTL handling. If the block style file with
 "-rtl.css" is included in addition to the regular style referenced in
 "block.json" file then it is going to be automatically registered.

 Props swisspidy, aristath.
 See #52301.
 }}}

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


More information about the wp-trac mailing list