Make WordPress Core

Ticket #37544: 37544.patch

File 37544.patch, 993 bytes (added by ocean90, 8 years ago)
  • src/wp-includes/class-wp-term-query.php

     
    595595
    596596                $where = implode( ' AND ', $this->sql_clauses['where'] );
    597597
    598                 $pieces = array( 'fields', 'join', 'where', 'distinct', 'orderby', 'order', 'limits' );
    599 
    600598                /**
    601599                 * Filters the terms query SQL clauses.
    602600                 *
     
    606604                 * @param array $taxonomies An array of taxonomies.
    607605                 * @param array $args       An array of terms query arguments.
    608606                 */
    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 );
    610608
    611609                $fields = isset( $clauses[ 'fields' ] ) ? $clauses[ 'fields' ] : '';
    612610                $join = isset( $clauses[ 'join' ] ) ? $clauses[ 'join' ] : '';