[wp-trac] [WordPress Trac] #55586: `get_block_wrapper_attributes` generates PHP notices.
WordPress Trac
noreply at wordpress.org
Thu Aug 28 12:10:20 UTC 2025
#55586: `get_block_wrapper_attributes` generates PHP notices.
-------------------------------------------------+-------------------------
Reporter: jmichaelward | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting
| Review
Component: Editor | Version: 5.6
Severity: normal | Resolution:
Keywords: dev-feedback has-patch needs- | Focuses:
testing |
-------------------------------------------------+-------------------------
Changes (by callumbw95):
* keywords: dev-feedback has-patch => dev-feedback has-patch needs-testing
Comment:
Hey Everyone,
I have just taken a look into this and believe I have a working fix based
on @jmichaelward's suggestion. I have had to add an additional check
within `apply_block_supports()` to see if `self::$block_to_render` has a
key of `blockName` as this variable is now set as an `array()` by default.
I believe this completely resolves the issue, and this
[https://github.com/WordPress/wordpress-develop/pull/9656 PR] should be
ready to test once the pipelines complete. 😃
--
Ticket URL: <https://core.trac.wordpress.org/ticket/55586#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list