[wp-trac] [WordPress Trac] #14740: 'taxonomy_template' Filter Name Clash

WordPress Trac wp-trac at lists.automattic.com
Mon Aug 30 18:19:10 UTC 2010


#14740: 'taxonomy_template' Filter Name Clash
-----------------------------+----------------------------------------------
 Reporter:  CharlesClarkson  |       Owner:                                      
     Type:  defect (bug)     |      Status:  new                                 
 Priority:  normal           |   Milestone:  Awaiting Review                     
Component:  Taxonomy         |     Version:  3.0                                 
 Severity:  normal           |    Keywords:  filters, taxonomy_template, taxonomy
-----------------------------+----------------------------------------------
 Both get_the_taxonomies() and get_taxonomy_template() use a filter named
 'taxonomy_template' for two different reasons.

 In get_the_taxonomies() the filter holds a format for use with printf(),
 sprintf() and vprintf().

 In get_taxonomy_template() the filter holds a template file name for use
 with include().

 One of these template should probably be renamed. get_the_taxonomies() is
 the newer function (since 3.0.0).

 Tested on WordPress 3.0.1.

 I was able to avoid the clash by delaying the start of my filter function,
 but I'm not sure that will work in every case.

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


More information about the wp-trac mailing list