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

WordPress Trac noreply at wordpress.org
Mon Nov 20 12:43:52 UTC 2017

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

Comment (by theMikeD):

 Replying to [comment:25 SergeyBiryukov]:
 > Replying to [comment:24 Clorith]:
 > > If we do decide to keep the transient in place, I do like the WP_DEBUG
 check, with it in use there's no need for the extra functions to clear
 things, as the version bump invalidation should take care of things for
 end users, but the patch needs refined a little.
 > I don't think the `WP_DEBUG` check is enough here. Plenty of users that
 create custom templates never heard of `WP_DEBUG`, and bumping the theme
 version is not an obvious step either.
 > Could we disable the caching for files in the theme's root directory
 (which seems to be where most users upload custom templates), and only use
 it for subdirectories?

 This feel like a half measure and would not help with themes that put
 template in subfolders. WP_DEBUG along with documenting this somewhere
 would be a good first step. An option somewhere in the UI to flush the
 template cache would also help non-developers. But WP_DEBUG at a minimum.

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

More information about the wp-trac mailing list