[wp-trac] [WordPress Trac] #55586: `get_block_wrapper_attributes` generates PHP notices.
WordPress Trac
noreply at wordpress.org
Sat Feb 7 11:02:19 UTC 2026
#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 | Focuses:
------------------------------------+------------------------------
Changes (by r1k0):
* keywords: dev-feedback has-patch needs-testing => dev-feedback has-patch
Comment:
== Patch Testing Report
Patch Tested: https://github.com/WordPress/wordpress-develop/pull/9656
=== Environment
- WordPress: 7.0-alpha-61215-src
- PHP: 8.2.29
- Server: nginx/1.29.4
- Database: mysqli (Server: 8.4.8 / Client: mysqlnd 8.2.29)
- Browser: Chrome 144.0.0.0
- OS: Windows 10/11
- Theme: Twenty Twenty-Five 1.4
- MU Plugins: None activated
- Plugins:
* Test Reports 1.2.1
=== Steps taken
1. Ensure you have ''wordpress-develop'' repo cloned and set up correctly.
2. Cd to ''wordpress-develop'', and perform
{{{
npm i
npm run build:dev
npm run env:start
npm run env:install
}}}
3. Run `npm run env:cli shell` and call `get_block_wrapper_attributes();`.
4. In another terminal window, navigate to `/wp-content/debug.log`.
5. Check the contents of the `debug.log`.
6. ✅ Patch is solving the problem
=== Expected result
- The PHP warnings are silenced when you call
`get_block_wrapper_attributes();`.
=== Additional Notes
- In the current WordPress and PHP versions, the notices are classified as
warnings.
=== Screenshots/Screencast with results
- Screencast before:
https://files.catbox.moe/u4j1w4.webm
- Screencast after:
https://files.catbox.moe/x02siq.webm
=== Support Content
None
--
Ticket URL: <https://core.trac.wordpress.org/ticket/55586#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list