[wp-trac] [WordPress Trac] #13265: Filter results of get_page_templates()
WordPress Trac
noreply at wordpress.org
Wed Feb 26 20:46:00 UTC 2014
#13265: Filter results of get_page_templates()
-------------------------+-------------------------
Reporter: nathanrice | Owner: nathanrice
Type: enhancement | Status: reopened
Priority: normal | Milestone: 3.9
Component: Themes | Version: 3.0
Severity: normal | Resolution:
Keywords: has-patch | Focuses: template
-------------------------+-------------------------
Changes (by nacin):
* milestone: Future Release => 3.9
Comment:
[27297] handles two common use cases:
* Removing a page template you don't want to appear.
* Renaming a page template (this runs post-translation).
It deliberately prevents new templates, ''for the moment''. I didn't want
this ticket to keep getting stuck on that without giving theme authors
tools that are otherwise straightforward. (One use case highlighted would
be a child theme removing a parent theme's template, for example.)
By all means, the discussion for new templates can continue. As
downstairsdev can attest, I do follow this ticket, as last night at the
WordPress Austin meetup I knew he had posted a patch. :-) I don't really
love what happens in [attachment:plugin.php], does anyone else have a
preference?
p.s. I didn't mean to omit props on [27297]; that was a group effort. I'll
make sure people end up on the credits page if they don't otherwise.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/13265#comment:48>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list