-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Consider renaming lib/compat PHP files and directories for evergreen overrides of core WordPress #38900
Comments
cc @WordPress/gutenberg-core |
👋 The general approach for any code is this:
Said this, backporting and maintaining two codebases in sync is one of the major struggles, especially for PHP code. There're other people with more experience than I have that can comment on the trade-offs and other approaches that have been tried, so I'll let them share their thoughts. |
For the full picture, there is #33810 where we discussed initial ideas for streamlining the process. As the first step, we should document the way things work today. It looks like people raise the same questions in other places so having one place to use as a reference would be great. Edit: I found my last comment on the same topic where things get complex while backporting changes targeting a minor WordPress release. See #38681 (comment). |
Just linking a PR from @noisysocks that will address documenting the current project structure for PHP files: #39603. Thanks Rob! 🙇 |
What problem does this address?
Following on from a couple of comments on #38883 and related PRs.
One of the things that we've bumped into while making overrides to
theme.json
support in thelib/compat
directory, is the potential confusion between which changes belong in thewordpress-5.9
andwordpress-6.0
directories (for backwards and forwards compatibility), and which overrides we'll need to maintain in perpetuity due to Gutenberg being the main place for development of global styles related features.One way of looking at it is that the files in the
lib/compat
directory serve the following purposes:wordpress-develop
What is your proposed solution?
The overall goal for this issue is to see what changes we can make to improve the developer experience on making updates to
theme.json
/ global settings and styles, to hopefully make it easier for new contributors to contribute to or slot into development work in these areas.The text was updated successfully, but these errors were encountered: