[wp-trac] [WordPress Trac] #15337: fix get_attachment_template() to pass templates array

WordPress Trac wp-trac at lists.automattic.com
Mon Nov 8 02:28:51 UTC 2010


#15337: fix get_attachment_template() to pass templates array
--------------------------+-------------------------------------------------
 Reporter:  willnorris    |       Owner:                 
     Type:  defect (bug)  |      Status:  new            
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Themes        |     Version:                 
 Severity:  normal        |    Keywords:                 
--------------------------+-------------------------------------------------
 get_attachment_template() currently queries for a number of templates
 based on the mime-type of the attachment.  It does so by checking each one
 individually, and returning as soon as it finds one.  It should instead
 build an array of templates, and pass the entire array to
 get_query_template().

 patch attached.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/15337>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list