WordPress.org

Make WordPress Core

#24333 closed enhancement (duplicate)

Add Filter in get_page_templates()

Reported by: luehrsen Owned by:
Milestone: Priority: normal
Severity: normal Version: 3.5
Component: Template Keywords:
Focuses: Cc:

Description

Although we can ingest custom page templates with the "template_redirect" action, it is not possible to ingest (and select) these templates with the page template dropdown. Therefore I would suggest adding a filter to maniuplate (array) $page_templates in class-wp-theme.php on line 940 ( WP_THEME::get_page_templates() ).

http://core.trac.wordpress.org/browser/trunk/wp-includes/class-wp-theme.php#L940

Change History (1)

comment:1 SergeyBiryukov11 months ago

  • Keywords needs-patch removed
  • Milestone Awaiting Review deleted
  • Resolution set to duplicate
  • Status changed from new to closed
  • Version changed from trunk to 3.5
Note: See TracTickets for help on using tickets.