[wp-trac] [WordPress Trac] #11076: In get_terms(), allow 'include' & 'exclude' args to be arrays

WordPress Trac wp-trac at lists.automattic.com
Sat Jan 2 10:34:05 UTC 2010


#11076: In get_terms(), allow 'include' & 'exclude' args to be arrays
-------------------------+--------------------------------------------------
 Reporter:  scribu       |       Owner:  filosofo        
     Type:  enhancement  |      Status:  new             
 Priority:  normal       |   Milestone:  3.0             
Component:  Taxonomy     |     Version:                  
 Severity:  normal       |    Keywords:  has-patch commit
-------------------------+--------------------------------------------------

Comment(by westi):

 Looks like we should also do this for {{{$exclude_tree}}} and we should
 probably set the default values at the top of the function to
 {{{array()}}} instead of {{{''}}} so we can avoid the {{{preg_split}}}.

 Wondering if we should refactor some of this code into a helper function
 as we have a lot of copy/paste going on here.

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


More information about the wp-trac mailing list