[wp-trac] [WordPress Trac] #13239: Filter locate_template template_names variable
WordPress Trac
noreply at wordpress.org
Wed Feb 12 04:19:55 UTC 2014
#13239: Filter locate_template template_names variable
----------------------------------------+-----------------------
Reporter: chrisbliss18 | Owner:
Type: enhancement | Status: reopened
Priority: normal | Milestone: 3.9
Component: Themes | Version: 3.0
Severity: normal | Resolution:
Keywords: has-patch 3.3-early commit | Focuses:
----------------------------------------+-----------------------
Comment (by georgestephanis):
Just a bit of clarification, the reason I had included the option to fully
duck-punch the functionality -- and pass in the $load and $require_once
was so that it could -- for example -- clock analytics on how long each
template include takes to run on average, and cache ones as determined by
the back-end.
The ability to add an absolute path and have it included is spiffy for the
latter part, but there's no good way to clock the time it takes for the
include to evaluate, short of faking a duck-punch with the existing filter
and snagging the arguments passed in via a `debug_backtrace()`
If that's something that we don't wanna support, that's fine, just wanted
to drop in an explanation of why it had been there.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/13239#comment:65>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list