Make WordPress Core

Changeset 6284


Ignore:
Timestamp:
10/23/2007 04:39:03 PM (17 years ago)
Author:
ryan
Message:

Add option for ordering retrieved terms by slug or term_group. Props michelwp. fixes #5245

File:
1 edited

Legend:

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

    r6283 r6284  
    560560    else if ( 'name' == $orderby )
    561561        $orderby = 't.name';
     562    else if ( 'slug' == $orderby )
     563        $orderby = 't.slug';
     564    else if ( 'term_group' == $orderby )
     565        $orderby = 't.term_group';
    562566    else
    563567        $orderby = 't.term_id';
Note: See TracChangeset for help on using the changeset viewer.