- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.1/wp-includes/taxonomy.php
r18354 r18021 1195 1195 elseif ( empty($_orderby) || 'id' == $_orderby ) 1196 1196 $orderby = 't.term_id'; 1197 else1198 $orderby = 't.name';1199 1197 1200 1198 $orderby = apply_filters( 'get_terms_orderby', $orderby, $args ); … … 1204 1202 else 1205 1203 $order = ''; 1206 1207 $order = strtoupper( $order );1208 if ( '' !== $order && !in_array( $order, array( 'ASC', 'DESC' ) ) )1209 $order = 'ASC';1210 1204 1211 1205 $where = "tt.taxonomy IN ('" . implode("', '", $taxonomies) . "')";
Note: See TracChangeset
for help on using the changeset viewer.