[wp-trac] [WordPress Trac] #56184: register_block_type does not recognise "ancestor" block setting

WordPress Trac noreply at wordpress.org
Tue Jul 19 13:22:46 UTC 2022


#56184: register_block_type does not recognise "ancestor" block setting
-------------------------------------+------------------------------
 Reporter:  lovor                    |       Owner:  gziolo
     Type:  defect (bug)             |      Status:  closed
 Priority:  normal                   |   Milestone:  Awaiting Review
Component:  Editor                   |     Version:  6.0
 Severity:  normal                   |  Resolution:  fixed
 Keywords:  has-patch needs-testing  |     Focuses:  ui
-------------------------------------+------------------------------
Changes (by gziolo):

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


Comment:

 In [changeset:"53718" 53718]:
 {{{
 #!CommitTicketReference repository="" revision="53718"
 Editor: Fix `register_block_type` does not recognise `ancestor` block
 setting

 When registering block through PHP, using `register_block_type` function,
 newly introduced `ancestor` block setting in `block.json` was not
 recognised. It worked though, when block is registered from JavaScript.

 Props lovor, annezazu.
 Fixes #56184.
 }}}

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


More information about the wp-trac mailing list