[wp-trac] [WordPress Trac] #53416: block.json without a `supports` key throws notice

WordPress Trac noreply at wordpress.org
Tue Jun 15 21:36:23 UTC 2021


#53416: block.json without a `supports` key throws notice
--------------------------+-----------------------------
 Reporter:  walbo         |       Owner:  SergeyBiryukov
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:  5.8
Component:  Editor        |     Version:  trunk
 Severity:  normal        |  Resolution:  fixed
 Keywords:  has-patch     |     Focuses:
--------------------------+-----------------------------
Changes (by SergeyBiryukov):

 * owner:  (none) => SergeyBiryukov
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"51167" 51167]:
 {{{
 #!CommitTicketReference repository="" revision="51167"
 Editor: Check if `supports` metadata key is defined before migrating
 typography keys.

 This avoids an "Undefined index" PHP notice on blocks without a `supports`
 key in `block.json`.

 Follow-up to [51089], [51153], [51159].

 Props walbo.
 Fixes #53416.
 }}}

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


More information about the wp-trac mailing list