Make WordPress Core


Ignore:
Timestamp:
06/30/2010 12:05:18 AM (16 years ago)
Author:
dd32
Message:

Alot more tabs. Props jacobsantos & Viper007bond. See #14147

File:
1 edited

Legend:

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

    r15220 r15355  
    982982        $selects = array();
    983983        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':
    988988                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':
    995995                        $orderby = '';
    996996                        $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 ));
    10001000
    10011001        $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.