WordPress.org

Make WordPress Core

Opened 7 years ago

Closed 5 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: euge444 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)

#1 follow-up: @SergeyBiryukov
7 years ago

Related: #11216

#2 in reply to: ↑ 1 @euge444
7 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 @nacin
7 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.

#4 @chriscct7
5 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to wontfix
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.