[wp-trac] [WordPress Trac] #60846: When creating a new template, the Choose a pattern screen doesn't honor the `template_hierarchy` filter
WordPress Trac
noreply at wordpress.org
Mon Apr 8 16:45:37 UTC 2024
#60846: When creating a new template, the Choose a pattern screen doesn't honor the
`template_hierarchy` filter
--------------------------------------+-------------------------------
Reporter: aljullu | Owner: jorgefilipecosta
Type: defect (bug) | Status: closed
Priority: normal | Milestone: Future Release
Component: Editor | Version: 6.1
Severity: normal | Resolution: fixed
Keywords: has-patch has-unit-tests | Focuses: template
--------------------------------------+-------------------------------
Changes (by jorgefilipecosta):
* owner: (none) => jorgefilipecosta
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"57944" 57944]:
{{{
#!CommitTicketReference repository="" revision="57944"
Honor template_hierarchy filters when creating a template in the Site
Editor.
Currently, in blocks themes it's possible to use the
${type}_template_hierarchy filter to alter the template hierarchy.
However, those filters are not taken into consideration by the Choose a
pattern popup screen that appears when creating a new template in the Site
Editor, causing a mismatch between the editor and the frontend.
Props aljullu, mukesh27, ntsekouras, jorgefilipecosta, gziolo.
Fixes #60846.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/60846#comment:9>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list