[wp-trac] [WordPress Trac] #24333: Add Filter in get_page_templates()
WordPress Trac
noreply at wordpress.org
Tue May 14 09:51:51 UTC 2013
#24333: Add Filter in get_page_templates()
-------------------------+-----------------------------
Reporter: luehrsen | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Template | Version: trunk
Severity: normal | Keywords: needs-patch
-------------------------+-----------------------------
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
--
Ticket URL: <http://core.trac.wordpress.org/ticket/24333>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list