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

WordPress Trac noreply at wordpress.org
Wed Jan 9 06:31:07 UTC 2013


#15337: fix get_attachment_template() to pass templates array
------------------------------------+------------------
 Reporter:  willnorris              |       Owner:
     Type:  defect (bug)            |      Status:  new
 Priority:  normal                  |   Milestone:  3.6
Component:  Template                |     Version:  2.0
 Severity:  normal                  |  Resolution:
 Keywords:  dev-feedback has-patch  |
------------------------------------+------------------
Changes (by SergeyBiryukov):

 * version:   => 2.0
 * component:  Themes => Template
 * milestone:  Future Release => 3.6


Comment:

 Two refreshed patches:

 * [attachment:15337.patch] keeps the backwards compatibility, except for
 the underscore issue in comment:9 (i.e. `image_jpeg.php`, which previously
 didn't work, would now do).
 * [attachment:15337.2.patch] reverses the order per comment:1 and changes
 the underscore to a dash.

 Both patches also use `get_queried_object()` instead of the `$posts`
 global for consistency with other `get_*_template()` functions.

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


More information about the wp-trac mailing list