WordPress.org

Make WordPress Core

Changeset 6843


Ignore:
Timestamp:
02/14/2008 05:40:19 AM (13 years ago)
Author:
ryan
Message:

Add more sort options to wp_get_object_terms(). Props andy. fixes #5245

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/taxonomy.php

    r6799 r6843  
    10301030    else if ( 'name' == $orderby )
    10311031        $orderby = 't.name';
     1032    else if ( 'slug' == $orderby )
     1033        $orderby = 't.slug';
     1034    else if ( 'term_group' == $orderby )
     1035        $orderby = 't.term_group';
     1036    else
     1037        $orderby = 't.term_id';
    10321038
    10331039    $taxonomies = "'" . implode("', '", $taxonomies) . "'";
Note: See TracChangeset for help on using the changeset viewer.