[wp-trac] [WordPress Trac] #13239: Filter locate_template template_names variable
WordPress Trac
noreply at wordpress.org
Thu Apr 23 18:00:30 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 coreyw):
Wakeup WordPress, its 2015 here, and we still have to put our template
files in the root of our theme directories... very sad.
Like putting your theme meta in the comments of a style.css in the theme
root isn't bad enough, you're making me put my main templates (index, 404,
page, etc) in the root also, and not letting me change that? So now I'm
mixing functions.php, bower.json, package.json, style.css, screenshot.png,
AND my templates? Disgusting. You're already searching subdirectories (at
least one) for custom page templates, why not do the same for the main
templates. But allow any subdirectory level.
Or keep the default the same, but for the love of all that is holy add a
filter to locate_template(), or have locate_template recursively iterate
an array of directories that we can add to with a filter. Is that so much
to ask? This ticket has been open for FIVE years already, and nothing has
happened to help.
I know you're saying "write code and submit patch", well others have
already done that and I see that nothing happens. Or it moves at a glacial
speed. Lets get this moving.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/13239#comment:82>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list