[wp-trac] [WordPress Trac] #11076: Allow 'include' & 'exclude' args to be arrays
WordPress Trac
wp-trac at lists.automattic.com
Mon Apr 25 20:30:27 UTC 2011
#11076: Allow 'include' & 'exclude' args to be arrays
------------------------------+---------------------
Reporter: scribu | Owner: scribu
Type: enhancement | Status: closed
Priority: normal | Milestone: 3.0
Component: General | Version:
Severity: normal | Resolution: fixed
Keywords: has-patch commit |
------------------------------+---------------------
Comment (by miqrogroove):
I'm trying to figure out if something blew up here. In version 2.9 this
was working fine:
{{{
$ids = implode(',', $ids);
$taxonomy = 'post_tag';
$args = array('include' => $ids);
$terms = get_terms($taxonomy, $args);
}}}
In version 3.0, get_terms is returning an empty array :( I'm working on a
plugin upgrade that needs to be backward compatible, so I'm hoping this
change doesn't mean CSVs are invalid now.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/11076#comment:15>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list