[wp-trac] [WordPress Trac] #25879: Add filter to page_template_dropdown()
WordPress Trac
noreply at wordpress.org
Fri Oct 9 21:50:09 UTC 2015
#25879: Add filter to page_template_dropdown()
-------------------------------+-----------------------------
Reporter: meloniq | Owner: DrewAPicture
Type: enhancement | Status: closed
Priority: normal | Milestone: Future Release
Component: Posts, Post Types | Version: 3.8
Severity: normal | Resolution: fixed
Keywords: has-patch | Focuses: template
-------------------------------+-----------------------------
Changes (by DrewAPicture):
* owner: => DrewAPicture
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"34995"]:
{{{
#!CommitTicketReference repository="" revision="34995"
Template: Make it possible to both ''add'' and ''remove'' items from the
page templates list using the `theme_page_templates` filter.
The `theme_page_templates` hook was originally added in [27297] as
`page_templates`, and later renamed in [27470]. Previously, it was only
possible to remove or rename page templates via this hook.
Fixes #13265. Fixes #25879.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/25879#comment:12>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list