-
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
Prevent plugins from using core block namespaces #2241
Conversation
Codecov Report
@@ Coverage Diff @@
## master #2241 +/- ##
==========================================
+ Coverage 24.23% 24.67% +0.43%
==========================================
Files 142 143 +1
Lines 4460 4486 +26
Branches 756 757 +1
==========================================
+ Hits 1081 1107 +26
Misses 2854 2854
Partials 525 525
Continue to review full report at Codecov.
|
This should be way easier to do since we introduced the |
Yes, it sounds like a great idea. We can enable such flag at the beginning |
Let's close it and implement it as part of #4841. Most likely it will have to be done on PHP side. |
Support Theme Colors and Gradients
Fixes #333.
This PR prohibits plugins from registering blocks in the
core
orcore-*
namespaces (we currently usecore-embed
).We should reserve these for future usage by core.
The PR works by setting an
ALLOW_CORE_NAMESPACES
flag when registering our core blocks, then unsetting it later. Because this flag is completely internal to theblocks
module, it is not accessible by third-party code.