[wp-trac] [WordPress Trac] #13239: Filter locate_template template_names variable
WordPress Trac
noreply at wordpress.org
Tue Feb 11 08:18:49 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 rmccue):
Replying to [comment:57 coffee2code]:
> More than anything, though, I have concerns it makes it harder to play
well with others; it'll become a problem if multiple functions hook the
filter since the first invoked callback may have chosen a template to
load, leaving subsequent callbacks unable to determine how the template
was chosen and unable to influence the template selection process (short
of ignoring any previous filtered selection and hoping a later callback
doesn't override its own selection).
You've convinced me on this point alone. I preferred the other patch, but
after considering it, the array filter is more flexible.
+1 on either patch, but preference to [attachment:13239.2.diff].
pls can has?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/13239#comment:59>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list