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

WordPress Trac noreply at wordpress.org
Tue Aug 23 13:31:01 UTC 2022


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

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


Comment:

 In [changeset:"53923" 53923]:
 {{{
 #!CommitTicketReference repository="" revision="53923"
 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, gziolo.
 Merges [53718] to the 6.0 branch.
 Fixes #56184.
 }}}

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


More information about the wp-trac mailing list