[wp-trac] [WordPress Trac] #13239: Filter locate_template template_names variable
WordPress Trac
noreply at wordpress.org
Fri Aug 7 21:51:32 UTC 2015
#13239: Filter locate_template template_names variable
-------------------------+-----------------------------
Reporter: chrisjean | Owner:
Type: enhancement | Status: reopened
Priority: normal | Milestone: Future Release
Component: Themes | Version: 3.0
Severity: normal | Resolution:
Keywords: has-patch | Focuses:
-------------------------+-----------------------------
Comment (by aristath):
Replying to [comment:91 coreyw]:
> Replying to [comment:90 aristath]:
> That looks good @aristath. For the alternate suggestion (inside the
foreach), I would pass `$template_name` (singular) instead of
`$template_names` though. And only break if the filter returns a value.
Thanks for creating these diffs. Hopefully they will be included soon.
We can do that...
However I'm not sure which one of the 2 diffs is preferable.
That's why I haven't submitted another diff... Waiting to see what others
think too.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/13239#comment:92>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list