[wp-trac] [WordPress Trac] #43597: Modify template-loader engine
WordPress Trac
noreply at wordpress.org
Thu Oct 3 02:13:24 UTC 2019
#43597: Modify template-loader engine
-------------------------+------------------------------
Reporter: chespir | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Themes | Version:
Severity: normal | Resolution:
Keywords: | Focuses: template
-------------------------+------------------------------
Comment (by dhurlburtusa):
Note: The proposed solution here is very similar to the one in #48175. The
difference being that there is a filter named
`template_resolution_algorithm` which runs the default template hierarchy
algorithm as the template resolution algorithm (TRA). The benefit being
that one can easily override the TRA. It also encapsulates the current
template hierarchy algorithm in a function which could be used else where.
It could even be used in the custom TRA depending on the request.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/43597#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list