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

WordPress Trac wp-trac at lists.automattic.com
Sun Nov 14 05:56:32 UTC 2010


#15337: fix get_attachment_template() to pass templates array
--------------------------+-------------------------------------------------
 Reporter:  willnorris    |       Owner:     
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  3.1
Component:  Themes        |     Version:     
 Severity:  normal        |    Keywords:     
--------------------------+-------------------------------------------------

Comment(by greenshady):

 Note that the patch will break older hooks:

  * `$type[0]_template`
  * `$type[1]_template`
  * `$type[0]_$type[1]_template`

 We'll only be left with the `attachment_template` hook.  I actually think
 this makes more sense anyway because of the addition of the
 `$type_template_hierarchy` hook added to the
 `get_query_template()`function.

 I don't think the change would really break compatibility with many (if
 any) themes/plugins though.

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


More information about the wp-trac mailing list