[wp-trac] [WordPress Trac] #41362: Make locate_template() filterable to change the template locations

WordPress Trac noreply at wordpress.org
Thu Aug 10 14:49:43 UTC 2017


#41362: Make locate_template() filterable to change the template locations
-------------------------------------------------+-------------------------
 Reporter:  kylejennings83                       |       Owner:
     Type:  enhancement                          |      Status:  new
 Priority:  normal                               |   Milestone:  Awaiting
Component:  Themes                               |  Review
 Severity:  normal                               |     Version:  4.8
 Keywords:  has-patch needs-testing 2nd-opinion  |  Resolution:
                                                 |     Focuses:  template
-------------------------------------------------+-------------------------

Comment (by kylejennings83):

 @dingo_bastard

 Just to be clear, this proposed change does not in anyway force anyone to
 adopt a MVC architecture, nor does it encourage or force putting CPTs in
 the theme. It merely allows moving the location of the template files to
 meet a developers needs.

 I only used these MVC examples because I personally prefer the clean
 organization and separation of concerns that MVC offers.

 Being able to move the templates opens up a whole new world for
 developers.


 @dingo_bastard @jarednova @ikraav
 Also - Are we in favor of closing this ticket and driving attention to
 https://core.trac.wordpress.org/ticket/13239

 I have proposed my version of the filter change there and that ticket has
 something like 6 years (lol) of comments.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/41362#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list