-
Notifications
You must be signed in to change notification settings - Fork 798
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
General: update WordPress version requirements to WP 5.6 #18860
Conversation
WordPress 5.7 will be released on March 9, 2021, and from that point on Jetpack will require WP 5.6. See #18842
Scheduled Jetpack release: March 2, 2021. Thank you for the great PR description! When this PR is ready for review, please apply the |
This mostly concerns one single change: https://make.wordpress.org/core/2020/11/18/changes-to-toolbar-components-in-wordpress-5-6/
Caution: This PR has changes that must be merged to WordPress.com |
Since we do not support the old Twitter block, let's remove the test for it. Support was removed in 5065a7d
Thank you for your PR! When contributing to Jetpack, we have a few suggestions that can help us test and review your patch:
This comment will be updated as you work on your PR and make changes. If you think that some of those checks are not needed for your PR, please explain why you think so. Thanks for cooperation 🤖 If you are an automattician, once your PR is ready for review add the "[Status] Needs Team review" label and ask someone from your team review the code. jetpack plugin:
|
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.
Seems sensible. Haven't manually tested though.
JS tests are failing again. |
We need a fresh version of the package for our tests to run, especially for the Whatsapp block tests that include loading ToolbarItem.
This reverts commit 3815f85.
Since that block has a set of tests, the tests need to be able to use ToolbarItem. If I update the version of @wordpress/components so it includes ToolbarItem, the tests pass, but the overall block build fails: ERROR in ./node_modules/@wp-g2/create-styles/node_modules/postcss/lib/map-generator.js Module not found: Error: Can't resolve 'path' in '.../jetpack/node_modules/@wp-g2/create-styles/node_modules/postcss/lib' Let's consequently hold off this change until @wordpress/components is properly updated in a separate PR: #16763.
I attempted to fix this (see 4 commits above). Unfortunately it will require a larger set of changes that I don't think are appropriate at this point of the release cycle (update 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.
Good refactor, @jeherve! Reviewed the whole code and tested all affected blocks without noting any regression, except for the Anchor extension which should be easy to fix.
projects/plugins/jetpack/extensions/blocks/anchor-fm/anchor-fm.php
Outdated
Show resolved
Hide resolved
….php Co-authored-by: Miguel Torres <[email protected]>
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.
LGTM! 🚀
r221664-wpcom |
Changes proposed in this Pull Request:
WordPress 5.7 will be released on March 9, 2021, and from that point on Jetpack will require WP 5.6.
This PR introduces the following changes:
IconButton
(Reference)formattingControls
toallowedFormats
(Reference)Jetpack product discussion
Primary issue: #18842
Does this pull request change what data or activity we track or use?
Testing instructions:
Proposed changelog entry for your changes: