This repository has been archived by the owner on Feb 23, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 219
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix custom templates with fallback being incorrectly attributed (#5447)
* Fix custom templates with fallback being incorrectly attributed Category and tags templates can fallback to the generic archive if, e.g., the theme provides one for the latter but not for the former. However, since Gutenberg is not aware of this fallback mechanism, it would incorrectly attribute the custom template to the user instead of the theme. Here we are explicitly setting the `has_theme_file` to make sure Gutenberg knows we do, in fact, have a theme fail (if not what it expects). Also skip the loop if template is duplicate but has no fallback Fixes #5441
- Loading branch information
1 parent
e49c6a2
commit 9a8f27f
Showing
2 changed files
with
56 additions
and
18 deletions.
There are no files selected for viewing
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
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