[wp-trac] [WordPress Trac] #14310: Make template hierarchy filterable

WordPress Trac noreply at wordpress.org
Fri Aug 26 21:02:09 UTC 2016


#14310: Make template hierarchy filterable
-------------------------+--------------------------
 Reporter:  scribu       |       Owner:  johnbillion
     Type:  enhancement  |      Status:  closed
 Priority:  normal       |   Milestone:  4.7
Component:  Themes       |     Version:
 Severity:  normal       |  Resolution:  fixed
 Keywords:  has-patch    |     Focuses:  template
-------------------------+--------------------------
Changes (by johnbillion):

 * status:  accepted => closed
 * resolution:   => fixed


Comment:

 In [changeset:"38385"]:
 {{{
 #!CommitTicketReference repository="" revision="38385"
 Themes: Make the template hierarchy for a given template type filterable.

 This introduces a `{$type}_template_hierarchy` filter that allows the
 hierarchy of candidate template filenames for a given template type to be
 filtered.

 This allows the hierarchy to be added to or altered completely without
 resorting to re-building the hierarchy from scratch within the
 `template_include` filter, which is common and prone to conflicts between
 plugins and prone to getting out of sync with core's hierarchy.

 Fixes #14310
 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/14310#comment:76>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list