-
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
Fix template hierarchy for custom, user-generated templates #30464
Merged
youknowriad
merged 1 commit into
add/template-support-classic-themes
from
fix/template-hierarchy-custom-templates
Apr 2, 2021
Merged
Fix template hierarchy for custom, user-generated templates #30464
youknowriad
merged 1 commit into
add/template-support-classic-themes
from
fix/template-hierarchy-custom-templates
Apr 2, 2021
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
aristath
added
[Type] Bug
An existing feature does not function as intended
[Feature] Themes
Questions or issues with incorporating or styling blocks in a theme.
[Feature] Full Site Editing
labels
Apr 2, 2021
Size Change: 0 B Total Size: 1.42 MB ℹ️ View Unchanged
|
Merged this for now, we might reconsider the prefix in the other PR. |
aristath
added a commit
that referenced
this pull request
Apr 8, 2021
* Allow creating custom block templates in classic themes * Fix template fetching * Restore PHP callback * Take into account custom templates (#30464) * Change the prefix for custom templates (#30467) * Change the prefix for custom templates * Update comment * Add gutenberg_supports_block_templates (#30465) * Introduce gutenberg_is_fse_enabled * typo & reverse logic * update filter name * Remove filter * Rename function * don't use "disable"theme-supports * rename theme-support * Missed renaming the theme-support * Add a modal to edit the template's title before creating it * Fix design and enable for FSE themes * Add e2e test * Add documentation * Add some site blocks to the default template Co-authored-by: Ari Stathopoulos <aristath@gmail.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
[Feature] Themes
Questions or issues with incorporating or styling blocks in a theme.
[Type] Bug
An existing feature does not function as intended
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Fixes the template hierarchy issue for user-generated templates in #30438
How has this been tested?
Tested in the twentytwentyone & twentytwenty themes
Types of changes
Added a check for custom templates. These should not be getting overridden.
Checklist:
*.native.js
files for terms that need renaming or removal).