[wp-trac] [WordPress Trac] #42573: Templates not working properly

WordPress Trac noreply at wordpress.org
Tue Nov 21 14:10:29 UTC 2017

#42573: Templates not working properly
 Reporter:  precies       |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  high          |   Milestone:  4.9.1
Component:  Themes        |     Version:  4.9
 Severity:  normal        |  Resolution:
 Keywords:  needs-patch   |     Focuses:

Comment (by becky.absolute):

 Just a thought that I had ... what if an '''ENVIRONMENT''' variable was
 introduced (in some form). Then the code to cache the file listing could
 do a check of this '''ENVIRONMENT''' variable and only cache the listing
 if the value was set to "production" (or something along those lines).

 I personally don't set {{{WP_DEBUG}}} to true while I'm developing my
 themes and plugins, unless I'm troubleshooting an issue. But it would be
 easy for me to set up an '''ENVIRONMENT''' variable in the '''wp-
 config.php''' file when I'm setting up my local development environment or
 a staging environment.

 I've seen thing kind of variable in CodeIgniter and in Laravel. And I can
 imagine that it would be useful in other situations moving forward than
 just this one.

Ticket URL: <https://core.trac.wordpress.org/ticket/42573#comment:54>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform

More information about the wp-trac mailing list