[wp-trac] [WordPress Trac] #21213: Underscores get stripped out in $type ( get_query_template() )

WordPress Trac noreply at wordpress.org
Wed Jan 9 07:10:54 UTC 2013


#21213: Underscores get stripped out in $type ( get_query_template() )
-------------------------------------+------------------
 Reporter:  rinatkhaziev             |       Owner:
     Type:  defect (bug)             |      Status:  new
 Priority:  normal                   |   Milestone:  3.6
Component:  Template                 |     Version:  2.5
 Severity:  normal                   |  Resolution:
 Keywords:  needs-testing has-patch  |
-------------------------------------+------------------
Changes (by SergeyBiryukov):

 * version:  3.4.1 => 2.5
 * milestone:  Awaiting Review => 3.6


Comment:

 Related: [7223], [7224]. [attachment:template_php.patch] seems sane.

 An alternative would be to rename the filter to `front-page_template`:
 [attachment:21213.patch].

 `$type[0]_$type[1]_template` filter would need the same change for
 consistency, see #15337.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/21213#comment:4>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list