[wp-trac] [WordPress Trac] #56801: array_key_exists error in wp_apply_custom_classname_support

WordPress Trac noreply at wordpress.org
Tue Oct 11 18:55:46 UTC 2022


#56801: array_key_exists error in wp_apply_custom_classname_support
--------------------------+---------------------
 Reporter:  spacedmonkey  |       Owner:  (none)
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:  6.1
Component:  Editor        |     Version:  trunk
 Severity:  normal        |  Resolution:  fixed
 Keywords:                |     Focuses:
--------------------------+---------------------
Changes (by hellofromTonya):

 * keywords:  needs-patch close =>
 * status:  new => closed
 * resolution:   => fixed


Comment:

 Changeset [54498] resolved this ticket too. Why? Before [54498], the 2nd
 parameter of `wp_apply_custom_classname_support()` was `null` when a block
 did not declare attributes. In WP 6.1, the attributes of `core/page-list`
 were removed, highlighting this problem.

 Is a fix needed for this ticket? No.

 Why? `wp_apply_custom_classname_support()` expects an array data type, not
 `null`. The issue noted in #56799 resulted in an invalid data type being
 passed to it.

 I'll close this ticket as fixed.

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


More information about the wp-trac mailing list