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

WordPress Trac noreply at wordpress.org
Tue Jun 16 20:49:46 UTC 2015


#15337: fix get_attachment_template() to pass templates array
-----------------------------------+--------------------------
 Reporter:  willnorris             |       Owner:  johnbillion
     Type:  defect (bug)           |      Status:  closed
 Priority:  normal                 |   Milestone:  4.3
Component:  Themes                 |     Version:  2.0
 Severity:  normal                 |  Resolution:  fixed
 Keywords:  has-patch, needs-docs  |     Focuses:  template
-----------------------------------+--------------------------
Changes (by wonderboymusic):

 * status:  assigned => closed
 * resolution:   => fixed


Comment:

 In [changeset:"32804"]:
 {{{
 #!CommitTicketReference repository="" revision="32804"
 In `get_attachment_template()`, pass an array of templates to
 `get_query_template( 'attachment', $templates )`, instead of bailing on
 the first found template.

 Props willnorris, jfarthing84, SergeyBiryukov, DrewAPicture,
 wonderboymusic.
 Fixes #15337.
 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/15337#comment:21>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list