-
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
Remove IS_GUTENBERG_PLUGIN
check to ensure pattern overrides ship in 6.6.
#62011
Conversation
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. |
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.
Looks good to me 🙂
Should we also remove this check in conver-legacy-block.js
file? (I am not familiar with that, so I am not sure)
This is back compat for something that was only ever shipped in the Gutenberg plugin, so it doesn't need to be shipped to core. Eventually we can remove that code completely from the plugin. |
…on of pattern overrides source
fb20ec5
to
bf3c2d3
Compare
Size Change: 0 B Total Size: 1.74 MB ℹ️ View Unchanged
|
…on of pattern overrides source (WordPress#62011) Co-authored-by: talldan <talldanwp@git.wordpress.org> Co-authored-by: SantosGuillamot <santosguillamot@git.wordpress.org>
…on of pattern overrides source (WordPress#62011) Co-authored-by: talldan <talldanwp@git.wordpress.org> Co-authored-by: SantosGuillamot <santosguillamot@git.wordpress.org>
Reverses #59702
What?
In the build up to WordPress 6.5, the pattern overrides feature was bumped from the release.
The
IS_GUTENBERG_PLUGIN
flag was utilized for this. In both PHP and JS thepattern overrides
source would only be registered in the gutenberg plugin.Why?
The plan is to ship it in 6.6.
How?
Removes the use of
IS_GUTENBERG_PLUGIN
. While #59702 added the flag in bothlib/load.php
andpackages/editor/src/bindings/index.js
, thelib/load.php
flag has already been removed in another change prior to this PR.Only the
js
flag remains, which this PR removes.Testing Instructions
Prerequisites
package.json
, change theIS_GUTENBERG_PLUGIN
property tofalse
.Test pattern overrides