WordPress.org

Make WordPress Core

Ticket #14217: 14217.patch

File 14217.patch, 592 bytes (added by Viper007Bond, 8 years ago)
  • wp-includes/taxonomy.php

     
    998998        }
    999999        $select_this = implode(', ', apply_filters( 'get_terms_fields', $selects, $args ));
    10001000
     1001        $where = apply_filters( 'get_terms_where', $where, $args );
     1002
    10011003        $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";
    10021004
    10031005        if ( 'count' == $fields ) {