Ticket #12891: taxonomy.diff
| File taxonomy.diff, 1.0 KB (added by , 15 years ago) |
|---|
-
taxonomy.php
553 553 continue; 554 554 555 555 if ( is_taxonomy_hierarchical( $taxonomy ) && $include_children ) { 556 _transform_terms( $terms, $taxonomies, $field, 'term_id' );556 _transform_terms( $terms, $taxonomies, $field, $wpdb->term_taxonomy . '.term_id' ); 557 557 558 558 if ( empty( $terms ) ) 559 559 continue; … … 565 565 } 566 566 $terms = $children; 567 567 568 _transform_terms( $terms, $taxonomies, 'term_id', 'term_taxonomy_id' );568 _transform_terms( $terms, $taxonomies, 'term_id', $wpdb->term_taxonomy . '.term_taxonomy_id' ); 569 569 } 570 570 else { 571 _transform_terms( $terms, $taxonomies, $field, 'term_taxonomy_id' );571 _transform_terms( $terms, $taxonomies, $field, $wpdb->term_taxonomy . '.term_taxonomy_id' ); 572 572 } 573 573 574 574 if ( empty( $terms ) ) … … 600 600 return compact( 'join', 'where' ); 601 601 } 602 602 603 603 604 function _transform_terms( &$terms, $taxonomies, $field, $resulting_field ) { 604 605 global $wpdb; 605 606