Changeset 15355 for trunk/wp-includes/taxonomy.php
- Timestamp:
- 06/30/2010 12:05:18 AM (16 years ago)
- File:
-
- 1 edited
-
trunk/wp-includes/taxonomy.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/taxonomy.php
r15220 r15355 982 982 $selects = array(); 983 983 switch ( $fields ) { 984 case 'all':985 $selects = array('t.*', 'tt.*');986 break;987 case 'ids':984 case 'all': 985 $selects = array('t.*', 'tt.*'); 986 break; 987 case 'ids': 988 988 case 'id=>parent': 989 $selects = array('t.term_id', 'tt.parent', 'tt.count');990 break;991 case 'names':992 $selects = array('t.term_id', 'tt.parent', 'tt.count', 't.name');993 break;994 case 'count':989 $selects = array('t.term_id', 'tt.parent', 'tt.count'); 990 break; 991 case 'names': 992 $selects = array('t.term_id', 'tt.parent', 'tt.count', 't.name'); 993 break; 994 case 'count': 995 995 $orderby = ''; 996 996 $order = ''; 997 $selects = array('COUNT(*)');998 }999 $select_this = implode(', ', apply_filters( 'get_terms_fields', $selects, $args ));997 $selects = array('COUNT(*)'); 998 } 999 $select_this = implode(', ', apply_filters( 'get_terms_fields', $selects, $args )); 1000 1000 1001 1001 $query = "SELECT $select_this FROM $wpdb->terms AS t INNER JOIN $wpdb->term_taxonomy AS tt ON t.term_id = tt.term_id WHERE tt.taxonomy IN ($in_taxonomies) $where $orderby $order $limit";
Note: See TracChangeset
for help on using the changeset viewer.