[wp-trac] [WordPress Trac] #56799: PHP notice in class-wp-block-supports.php

WordPress Trac noreply at wordpress.org
Tue Oct 11 18:21:04 UTC 2022


#56799: PHP notice in class-wp-block-supports.php
--------------------------+---------------------
 Reporter:  petitphp      |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  6.1
Component:  General       |     Version:  trunk
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |     Focuses:
--------------------------+---------------------

Comment (by petitphp):

 To add more context, this seem to come from the `core/page-list` block
 which doesn't declare any attributes. That seem to cause the
 `self::$block_to_render` to not contain a key `attrs` in the PHP side.

 This in turn was causing a warning in `wp-includes/block-supports/custom-
 classname.php`, reported in #56801

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


More information about the wp-trac mailing list