WordPress.org

Make WordPress Core

Changeset 11469


Ignore:
Timestamp:
05/27/09 17:09:19 (5 years ago)
Author:
ryan
Message:

Fix default orderby for tt_id query. see #9937

File:
1 edited

Legend:

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

    r11468 r11469  
    12511251        $order = ''; 
    12521252    } else { 
    1253         if ( 'tt_ids' == $fields ) 
    1254             $orderby = 'tr.term_taxonomy_id'; 
    1255         else 
    1256             $orderby = 't.term_id'; 
    1257     } 
     1253        $orderby = 't.term_id'; 
     1254    } 
     1255 
     1256    // tt_ids queries can only be none or tr.term_taxonomy_id 
     1257    if ( ('tt_ids' == $fields) && !empty($orderby) ) 
     1258        $orderby = 'tr.term_taxonomy_id'; 
    12581259 
    12591260    if ( !empty($orderby) ) 
Note: See TracChangeset for help on using the changeset viewer.