[wp-trac] [WordPress Trac] #23151: get_attachment_template() doesn't follow the pattern of its get_{type}_template() siblings

WordPress Trac noreply at wordpress.org
Wed Jan 9 03:16:15 UTC 2013


#23151: get_attachment_template() doesn't follow the pattern of its
get_{type}_template() siblings
-------------------------+------------------
 Reporter:  rulatir      |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  3.6
Component:  Template     |     Version:  2.0
 Severity:  minor        |  Resolution:
 Keywords:  has-patch    |
-------------------------+------------------

Comment (by rulatir):

 Replying to [comment:2 SergeyBiryukov]:

 You don't need

 {{{
 $templates[] = "attachment.php";
 }}}

 because

 {{{
 get_query_template("attachment", $templates);
 }}}

 handles this.

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


More information about the wp-trac mailing list