-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Block Hooks: Update the compatibility layer #58468
Conversation
This pull request has changed or added PHP files. Please confirm whether these changes need to be synced to WordPress Core, and therefore featured in the next release of WordPress. If so, it is recommended to create a new Trac ticket and submit a pull request to the WordPress Core Github repository soon after this pull request is merged. If you're unsure, you can always ask for help in the #core-editor channel in WordPress Slack. Thank you! ❤️ View changed files❔ lib/compat/wordpress-6.4/block-hooks.php ❔ lib/compat/wordpress-6.4/class-gutenberg-rest-block-patterns-controller.php |
FYI @tjcafferkey 🙂 |
Flaky tests detected in 83bcd66. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/7716025527
|
Closing. WordPress 6.5 is going to be released in less than a week, which will raise the minimum required WordPress version for Gutenberg to 6.4, making the 6.4 compat layer obsolete. |
What?
Update
lib/compat/wordpress-6.4/block-hooks.php
to better reflect Block Hooks code as present in WP 6.4.Why?
We've found that we might need a more faithful copy of the Block Hooks code as found in Core in order to unlock some new features, e.g. #58388. In addition, this might be a blocker to WordPress/wordpress-develop#5726.
How?
By copying code from Core, and carefully replacing existing functions with it.
Testing Instructions
TBD, but basically: Test on WP 6.3, 6.4,
trunk
.Questions
What's our back-compat policy for Gutenberg? This PR is removing a number of functions, plus the
gutenberg_serialize_blocks
filter.TODO
theme
attribute injection anywhere.