Add more sort options to wp_get_object_terms(). Props andy. fixes #5245
git-svn-id: https://develop.svn.wordpress.org/trunk@6843 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
5394a0f27f
commit
68166b1851
@ -1029,6 +1029,12 @@ function wp_get_object_terms($object_ids, $taxonomies, $args = array()) {
|
||||
$orderby = 'tt.count';
|
||||
else if ( 'name' == $orderby )
|
||||
$orderby = 't.name';
|
||||
else if ( 'slug' == $orderby )
|
||||
$orderby = 't.slug';
|
||||
else if ( 'term_group' == $orderby )
|
||||
$orderby = 't.term_group';
|
||||
else
|
||||
$orderby = 't.term_id';
|
||||
|
||||
$taxonomies = "'" . implode("', '", $taxonomies) . "'";
|
||||
$object_ids = implode(', ', $object_ids);
|
||||
|
Loading…
x
Reference in New Issue
Block a user