[wp-trac] [WordPress Trac] #41362: Make locate_template() filterable to change the template locations
WordPress Trac
noreply at wordpress.org
Thu Aug 10 05:15:13 UTC 2017
#41362: Make locate_template() filterable to change the template locations
----------------------------+------------------------------
Reporter: kylejennings83 | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Themes | Version: 4.8
Severity: normal | Resolution:
Keywords: | Focuses: template
----------------------------+------------------------------
Comment (by jarednova):
@dingo_bastard I second @kylejennings83 suggestions and hope you'll
consider his patch. I totally understand your recommendation about
handling CPTs in a plugin. My experience with clients is actually the
opposite though — they want everything in one clean place (the theme
directory) that represents the architecture and style for the site. In a
plugins directory, there's often confusion about what "should" be
activated (especially after an over-excited intern goes through and
installs a hundred plugins). Regardless, we can all argue convincingly why
you'd be (crazy/correct) to put things like that in a (plugin/theme)
depending on the situation.
Something I've always loved about WordPress is there's no right way to
"use" it — yes people have built blogs, but they've also built movie
rating sites, cooking sites, (I think even the first versions of OpenTable
were built on a hacked-together WP install?) That's why 25% of the
internet is powered by it.
I wish this same openness applied to architecture. While WP wasn't
designed to be MVC in 2003; it *is* an MVC app. How do I know? Tens of
thousands of devs use it as an MVC app every day! (through Timber and
others like it). I hope the Core team will consider this (and patches)
like that to make it more conducive to MVC-style development
--
Ticket URL: <https://core.trac.wordpress.org/ticket/41362#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list