-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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: Move files from lib
to the compat
subfolder
#39904
Conversation
@ntsekouras - it looks like |
Why move these experimental features to
|
The reality is a bit different than the documentation because there is no |
Actually it seems that the specific file might not be needed. Let me check a bit better. It seems to have changes six months ago, but it was for another feature that later on, I moved it to the |
Great, I'm waiting for the confirmation 👍🏻 |
Hm.. I just checked and this was the last PR updating the patterns there: #38063, which is for |
a4604cf
to
eabc879
Compare
eabc879
to
a7bcdc9
Compare
I moved all files from
|
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 👍
What's up with the failed e2e tests?
I see the same issue in other open PRs. It fails randomly in |
Hmm, good to know it's unrelated to this PR. |
What?
Part of #39889. It only moved the files to the proper subfolders so they can be matched with the corresponding WordPress major release.
Why?
To follow the best practices for PHP code in the Gutenberg plugin as documented in https://github.com/WordPress/gutenberg/tree/trunk/lib#file-structure.
How?
I was going through the files that need to be backported to WordPress core for the upcoming 6.0 release. I noticed a few files in the
lib
folder that should live elsewhere.I also moved all files from
lib/compat/experimental
tolib/experimental
based on the feedback from @hellofromtonya.Experimental features
WP_REST_Block_Editor_Settings_Controller
WP_REST_Block_Navigation_Areas_Controller
WP_Rest_Customizer_Nonces
Shipped in WordPress 5.9
I located the same code in WP core:
WP_REST_Menu_Items_Controller
WP_REST_Menu_Locations_Controller
WP_REST_Menus_Controller
WP_REST_URL_Details_Controller
To ship in WordPress 6.0
gutenberg_register_gutenberg_patterns
Testing Instructions
There should be no change in how the Gutenberg plugin works.