[wp-trac] [WordPress Trac] #11216: Support page templates located in a subdirectory of the theme
WordPress Trac
wp-trac at lists.automattic.com
Mon Nov 7 05:34:40 UTC 2011
#11216: Support page templates located in a subdirectory of the theme
-------------------------------------+-----------------------------
Reporter: westi | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Future Release
Component: Themes | Version: 3.3
Severity: normal | Resolution:
Keywords: has-patch needs-testing |
-------------------------------------+-----------------------------
Changes (by rzen):
* version: 3.1 => 3.3
Comment:
After 14 months, I finally worked up the courage to take scribu's advice
and create a helper function. This function eliminates all the redundant
code I introduced in 11216.2.diff '''''as well as''''' the repeated code
from the original loops for collecting the template files.
With this patch, WordPress can support page templates in any level of
subdirectory within a theme, both for parent and child themes, and not
lose track of it's location.
I've personally tested it with page templates nested as deep as 2
directories for both a parent and child theme.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/11216#comment:12>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list