[wp-trac] [WordPress Trac] #57585: Editor: Make block type aware of selectors prop

WordPress Trac noreply at wordpress.org
Fri Apr 21 10:42:15 UTC 2023


#57585: Editor: Make block type aware of selectors prop
-------------------------------------------------+-------------------------
 Reporter:  aaronrobertshaw                      |       Owner:  gziolo
     Type:  enhancement                          |      Status:  closed
 Priority:  normal                               |   Milestone:  6.3
Component:  Editor                               |     Version:  6.2
 Severity:  normal                               |  Resolution:  fixed
 Keywords:  has-patch has-unit-tests needs-dev-  |     Focuses:
  note gutenberg-merge changes-requested         |
-------------------------------------------------+-------------------------
Changes (by gziolo):

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


Comment:

 In [changeset:"55673" 55673]:
 {{{
 #!CommitTicketReference repository="" revision="55673"
 Editor: Add selectors field to block type definition

 Adds support for the new selectors property for block types. It adds it to
 the allowed metadata when registering a block type, makes the
 WP_Block_Type class aware of it, exposes it through the block types REST
 API, and the get_block_editor_server_block_settings function.

 Corresponding work in the Gutenberg plugin:
 https://github.com/WordPress/gutenberg/pull/46496.

 Fixes #57585.
 Props aaronrobertshaw, hellofromTonya.
 }}}

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


More information about the wp-trac mailing list