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

WordPress Trac wp-trac at lists.automattic.com
Wed Dec 1 23:31:01 UTC 2010


#14740: 'taxonomy_template' Filter Name Clash
-----------------------------+----------------------------------------------
 Reporter:  CharlesClarkson  |        Owner:          
     Type:  defect (bug)     |       Status:  reopened
 Priority:  normal           |    Milestone:  3.1     
Component:  Taxonomy         |      Version:  3.0     
 Severity:  normal           |   Resolution:          
 Keywords:  has-patch        |  
-----------------------------+----------------------------------------------

Comment(by scribu):

 Aren't template tags all about ease of use?

 Which is better:

 {{{
 function alter_taxonomy_format() {
   return '%s -- %l';
 }

 add_filter('taxonomy_format', 'alter_taxonomy_format');
 the_taxonomies();
 remove_filter('taxonomy_format', 'alter_taxonomy_format');
 }}}

 or:

 {{{
 the_taxonomies(array('template' => '%s -- %l'));
 }}}

 I really don't see why a filter was chosen in the first place.

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


More information about the wp-trac mailing list