-
Notifications
You must be signed in to change notification settings - Fork 4.6k
Remove IS_GUTENBERG_PLUGIN check to ensure pattern overrides ship in 6.6.
#62011
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
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. |
SantosGuillamot
left a comment
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 <[email protected]> Co-authored-by: SantosGuillamot <[email protected]>
…on of pattern overrides source (WordPress#62011) Co-authored-by: talldan <[email protected]> Co-authored-by: SantosGuillamot <[email protected]>
Reverses #59702
What?
In the build up to WordPress 6.5, the pattern overrides feature was bumped from the release.
The
IS_GUTENBERG_PLUGINflag was utilized for this. In both PHP and JS thepattern overridessource 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.phpandpackages/editor/src/bindings/index.js, thelib/load.phpflag has already been removed in another change prior to this PR.Only the
jsflag remains, which this PR removes.Testing Instructions
Prerequisites
package.json, change theIS_GUTENBERG_PLUGINproperty tofalse.Test pattern overrides