[wp-trac] [WordPress Trac] #13265: Filter results of get_page_templates()

WordPress Trac noreply at wordpress.org
Fri Oct 9 21:50:07 UTC 2015


#13265: Filter results of get_page_templates()
-------------------------+-------------------------
 Reporter:  nathanrice   |       Owner:  nathanrice
     Type:  enhancement  |      Status:  closed
 Priority:  normal       |   Milestone:  4.4
Component:  Themes       |     Version:  3.0
 Severity:  normal       |  Resolution:  fixed
 Keywords:  has-patch    |     Focuses:  template
-------------------------+-------------------------
Changes (by DrewAPicture):

 * status:  reopened => 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/13265#comment:62>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list