[wp-trac] [WordPress Trac] #12106: get_attachment_template needs namespace

WordPress Trac wp-trac at lists.automattic.com
Mon Feb 1 00:43:23 UTC 2010


#12106: get_attachment_template needs namespace
--------------------------+-------------------------------------------------
 Reporter:  ptahdunbar    |       Owner:           
     Type:  defect (bug)  |      Status:  new      
 Priority:  normal        |   Milestone:  3.0      
Component:  Template      |     Version:           
 Severity:  normal        |    Keywords:  has-patch
--------------------------+-------------------------------------------------
 For consistency with the other template types, attachment based templates
 should have 'attachment' prepended to the template files.

 Also fixed the order it looks for mime types from most specific to more
 generic:

 * attachment-{$type[0]}_{$type[1]}.php[[BR]]
 * attachment-{$type[1]}.php[[BR]]
 * attachment-{$type[0]}.php[[BR]]
 * attachment.php[[BR]]

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


More information about the wp-trac mailing list