WordPress.org

Make WordPress Core

Ticket #9962: taxonomy.diff

File taxonomy.diff, 930 bytes (added by wnorris, 5 years ago)
  • wp-includes/taxonomy.php

     
    12791279        } else if ( 'tt_ids' == $fields ) { 
    12801280                if ( !empty($order_by) ) 
    12811281                        $orderby = "ORDER BY tr.term_taxonomy_id"; 
    1282                 $terms = $wpdb->get_col("SELECT tr.term_taxonomy_id FROM $wpdb->term_relationships AS tr INNER JOIN $wpdb->term_taxonomy AS tt ON tr.term_taxonomy_id = tt.term_taxonomy_id WHERE tr.object_id IN ($object_ids) AND tt.taxonomy IN ($taxonomies) $orderby $order"); 
     1282                $terms = $wpdb->get_col("SELECT tr.term_taxonomy_id FROM $wpdb->terms as t INNER JOIN $wpdb->term_taxonomy AS tt ON tt.term_id = t.term_id INNER JOIN $wpdb->term_relationships AS tr ON tr.term_taxonomy_id = tt.term_taxonomy_id WHERE tr.object_id IN ($object_ids) AND tt.taxonomy IN ($taxonomies) $orderby $order"); 
    12831283        } 
    12841284 
    12851285        if ( ! $terms )