Ticket #37544: 37544.patch
File 37544.patch, 993 bytes (added by , 8 years ago) |
---|
-
src/wp-includes/class-wp-term-query.php
595 595 596 596 $where = implode( ' AND ', $this->sql_clauses['where'] ); 597 597 598 $pieces = array( 'fields', 'join', 'where', 'distinct', 'orderby', 'order', 'limits' );599 600 598 /** 601 599 * Filters the terms query SQL clauses. 602 600 * … … 606 604 * @param array $taxonomies An array of taxonomies. 607 605 * @param array $args An array of terms query arguments. 608 606 */ 609 $clauses = apply_filters( 'terms_clauses', compact( $pieces), $taxonomies, $args );607 $clauses = apply_filters( 'terms_clauses', compact( 'fields', 'join', 'where', 'distinct', 'orderby', 'order', 'limits' ), $taxonomies, $args ); 610 608 611 609 $fields = isset( $clauses[ 'fields' ] ) ? $clauses[ 'fields' ] : ''; 612 610 $join = isset( $clauses[ 'join' ] ) ? $clauses[ 'join' ] : '';