Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #56799, comment 7


Ignore:
Timestamp:
10/11/2022 06:23:01 PM (12 months ago)
Author:
petitphp
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #56799, comment 7

    initial v1  
    11To 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.
    22
    3 This in turn was causing a warning in `wp-includes/block-supports/custom-classname.php`, reported in #56801
     3This in turn was causing a warning in `wp-includes/block-supports/custom-classname.php`, reported in #56801.
     4
     5The proposed fix add a check for the key and use an empty array has the default value if it doesn't exist.