-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Editor: Update WordPress packages to use with WordPress 5.8 #1176
Conversation
I’m surprised to see it happening, but it looks like the update for WordPress packages works on the first try in core. The version of the Gutenberg plugin (v10.3.1) is ready to land. |
I think we should compare the "lib" folder between the two Gutenberg versions used previously and the new one. |
Do you know which version was used before? |
I think for instance, that there are a number of changes to the block-supports folder (all of them maybe?) that should be backported. |
Not yet, but I'm going to check it soon. There are some changes in how blocks are aligned when the plugin gets activated: The most important part is that it works with the plugin installed so it feels like we can merge those changes as the first step and backport all the missing bits afterward. What do you think? |
I don't know to be honest, I wouldn't want to merge a broken experience personally, at least we should identify them and have tickets for them. I'm going through some of theme right now WordPress/gutenberg@v9.9.3...v10.3.2 For example, I see the lazy loading related changes as well. |
Many of the changes are behind the feature flag for FSE themes on PHP side. I'm not sure how much of the code is also removed from the JS build for those features marked as experimental which is most of the FSE blocks. |
Here's what I got so far, I only kept the changes that should probably be backported (not experimental things)
|
Thank you @youknowriad for checking. I converted your comment into todo list and marked the last item as done. I took care of it 2 weeks ago. |
@aristath, can you help us decide whether it's mandatory to include for WordPress 5.8 or more importantly in this context if that has any relation to JS code? |
WP_REST_URL_Details_Controller arrived via #18042 and would be used by #19387 which is not ready yet. |
inline lazy styles loading has no JS dependencies so it can go in 5.8 👍 |
@aristath I'm reading that it can go into its own dedicated ticket right? And updating the packages won't break anything if it's not done at the same time? |
Yes, updating the packages won't break anything if not done at the same time. It can be a separate, dedicated ticket. |
@@ -0,0 +1,40 @@ | |||
<?php |
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.
This one is only half backported, because it's only used for themes with theme.json which is not in Core yet. So for now I only included the mandatory filter to make themes without theme.json work properly.
Did another review of the diff and checked a few items on the list, I think we're good. We're missing two things:
There are three things that we should remember to do when back porting theme.json changes (if they land on 5.8)
|
I will fix the issues reported by CI, improve PHPDoc comments and test locally.
Right, those can land separately 👍🏻 We also need to add unit tests for newly added functionality in the follow-up patches
The best news is that everything looks like in the Gutenberg plugin after all changes applied by @youknowriad 🎉 |
In the response to the discussion during the Dev Chat, I'm doing a first pass to keep WordPress packages up to date in the WordPress 5.8 release cycle. See WordPress/wordpress-develop#1176 for more details. Props youknowriad, aristath, andraganescu. See #52991. git-svn-id: https://develop.svn.wordpress.org/trunk@50761 602fd350-edb4-49c9-b593-d223f7449a82
In the response to the discussion during the Dev Chat, I'm doing a first pass to keep WordPress packages up to date in the WordPress 5.8 release cycle. See #1176 for more details. Props youknowriad, aristath, andraganescu. See #52991. git-svn-id: https://develop.svn.wordpress.org/trunk@50761 602fd350-edb4-49c9-b593-d223f7449a82
All changes committed in https://core.trac.wordpress.org/changeset/50761. |
Would love if we can run the e2e tests against trunk. I tried running the command but it's failing because of wp-env somehow. |
In the response to the discussion during the Dev Chat, I'm doing a first pass to keep WordPress packages up to date in the WordPress 5.8 release cycle. See WordPress/wordpress-develop#1176 for more details. Props youknowriad, aristath, andraganescu. See #52991. Built from https://develop.svn.wordpress.org/trunk@50761 git-svn-id: http://core.svn.wordpress.org/trunk@50370 1a063a9b-81f0-0310-95a4-ce76da25c4cd
In the response to the discussion during the Dev Chat, I'm doing a first pass to keep WordPress packages up to date in the WordPress 5.8 release cycle. See WordPress/wordpress-develop#1176 for more details. Props youknowriad, aristath, andraganescu. See #52991. Built from https://develop.svn.wordpress.org/trunk@50761 git-svn-id: https://core.svn.wordpress.org/trunk@50370 1a063a9b-81f0-0310-95a4-ce76da25c4cd
Thanks for following this up folks. It looks like my instinct was correct that it would require more than a simple package update so I'm glad I left it for the experts. :) |
@peterwilsoncc, actually I also backported changes from 5.7.1 in a45c871 as a temporary step. However, @youknowriad helped to identify missing PHP changes and here we are enjoying all the latest stable features of Gutenberg in WordPress |
In the response to the discussion during the Dev Chat, I'm doing a first pass to keep WordPress packages up to date in the WordPress 5.8 release cycle. See WordPress/wordpress-develop#1176 for more details. Props youknowriad, aristath, andraganescu. See #52991. Built from https://develop.svn.wordpress.org/trunk@50761 git-svn-id: http://core.svn.wordpress.org/trunk@50370 1a063a9b-81f0-0310-95a4-ce76da25c4cd
Trac ticket: https://core.trac.wordpress.org/ticket/52991
I executed
npm run wp-packages-update
andnpm run build:dev
to update the block editor to the latest version based on WordPress packages published to npm.It works!!!
This Pull Request is for code review only. Please keep all other discussion in the Trac ticket. Do not merge this Pull Request. See GitHub Pull Requests for Code Review in the Core Handbook for more details.