[wp-trac] Re: [WordPress Trac] #7463: Display multiple tag titles on tag unions and intersections

WordPress Trac wp-trac at lists.automattic.com
Mon Apr 20 16:59:43 GMT 2009


#7463: Display multiple tag titles on tag unions and intersections
-------------------------+--------------------------------------------------
 Reporter:  ionfish      |       Owner:  anonymous                    
     Type:  enhancement  |      Status:  new                          
 Priority:  normal       |   Milestone:  2.8                          
Component:  Template     |     Version:  2.8                          
 Severity:  normal       |    Keywords:  has-patch tested dev-feedback
-------------------------+--------------------------------------------------

Comment(by ryan):

 This adds extra queries per tag, which is why we didn't add this from the
 beginning.  Reducing to one query would be nice.  In query.php where we do
 the single tag query we could call get_terms() with either 'include' or
 'slug__in' (which doesn't exist yet).

 Can we add this to single_tag_title()so themes don't have to update
 templates?

 The i18n on this is ugly, but I don't know if there's a good way to avoid
 concatenating strings.

 {{{
 $glue = __(', '), $conjuction = __(' and ')
 }}}

 You can't use function return as a default.  We usually default to false
 or null and then assign the default string if false inside the function.

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


More information about the wp-trac mailing list