Opened 12 years ago
Closed 10 years ago
#27968 closed feature request (wontfix)
Enable the 'WP_Theme->get_page_templates' function to work to a greater depth than one.
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Milestone: | Priority: | normal | |
| Severity: | normal | Version: | 3.9 |
| Component: | Themes | Keywords: | |
| Focuses: | Cc: |
Description
Currently the 'WP_Theme->get_page_templates' function searches the theme directory for templates to a hardcoded depth of one. Can either a hook be provided to allow this depth to be adjusted or some other mechanism to enable altering the depth without requiring modification of the Wordpress core?
Change History (4)
#2
in reply to:
↑ 1
@
12 years ago
Replying to SergeyBiryukov:
Related: #11216
But #11216 doesn't address what I was asking. It leaves the depth at a default of 1. I was asking to be able to specify the depth greater than this.
#3
@
12 years ago
He was just cross-referencing the original ticket.
Going more than one directory down is, I think, too much. It gets much more expensive.
See also http://nacin.com/2012/03/29/page-templates-in-subdirectories-new-in-wordpress-3-4/#comment-138301. And then #13265.
Related: #11216