-
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
Plugin: Remove compat layers for WP 6.4 and 6.5 #64096
Conversation
cc @WordPress/gutenberg-core |
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.
To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
lib/load.php
Outdated
@@ -188,28 +122,6 @@ function gutenberg_is_experiment_enabled( $name ) { | |||
// Fonts API / Font Face. | |||
remove_action( 'plugins_loaded', '_wp_theme_json_webfonts_handler' ); // Turns off WordPress 6.0's stopgap handler. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@hellofromtonya, do we still need this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Mamaduka no longer needed as of 6.4.0.
That callback was deprecated and its associated add_action()
hook was removed in 6.4.0 via r56500.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you, @hellofromtonya!
The remaining PHPUnit test failure comes from a test introduced in #60354. Based on the description, it seems like a back-sync from the core (WP 6.5), but I can find a similar test at https://github.com/WordPress/wordpress-develop. |
Flaky tests detected in fac3b3d. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/10168055536
|
Much of the 6.6 HTML API code relies on the 6.5 compat layer. They will need to be updated and brought over as the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @Mamaduka!!
I've tested the features I'm most familiar with:
✅ revision REST API related functionality (lib/compat/wordpress-6.4/class-gutenberg-rest-global-styles-revisions-controller-6-4.php)
✅ date translations (lib/compat/wordpress-6.5/script-loader.php)
✅ background CSS validation (lib/compat/wordpress-6.5/kses.php)
✅ deleting draft patterns (lib/compat/wordpress-6.4/blocks.php)
Is this PR intended to drop support for WP 6.4 and WP 6.5? If so, I think the "Requires at least" field also needs to be updated to 6.6. Otherwise, we will likely encounter critical errors in older WordPress versions. Here is an example of the error:
Also, I remember that the Gutenberg plugin customarily supported one version older. |
Good point! I think @Mamaduka also raised previously that performance tests hashes might need an update? https://github.com/WordPress/gutenberg/pull/56464/files#r1402992768 |
@Mamaduka
Edit - actually I think you're right, here's a couple more PRs: They both removed the folder for the version previous to the current release, as this PR does. |
There's also some code in the button block that can be removed so I've pushed a commit - #63115 |
Can we also remove this fallback code for WP6.4? gutenberg/lib/block-supports/layout.php Lines 1030 to 1043 in 86735ca
|
The "Requires at least" field needs to be updated to 6.5. The plugin supports the latest two major releases. Updating the "Requires at least" field and performance hash were usually done separately. |
Here's the PR for bumping versions and perf job SHA - #64126. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for handling this.
I've smoke tested 6.5 and 6.6 with the build from this PR and haven't spotted any issues.
Also not seeing anything that stands out in the code, it all looks good to me. Nice job!
These are no longer used in Core or Gutenberg. See https://core.trac.wordpress.org/ticket/60970. This only seems to have existed in the 6.5 compat directory, removed in #64096. --- Co-authored-by: sirreal <[email protected]> Co-authored-by: swissspidy <[email protected]>
What?
PR removes compat layers for WP 6.4 and 6.5. This is usually done after each release.
How?
Testing Instructions
Testing Instructions for Keyboard
Same.