WordPress.org

Make WordPress Core

Changeset 38377


Ignore:
Timestamp:
08/26/2016 06:10:56 PM (3 years ago)
Author:
boonebgorges
Message:

Eliminate unnecessary variable in WP_Term_Query.

Props ocean90.
Fixes #37544.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-term-query.php

    r38337 r38377  
    605605        $where = implode( ' AND ', $this->sql_clauses['where'] );
    606606
    607         $pieces = array( 'fields', 'join', 'where', 'distinct', 'orderby', 'order', 'limits' );
    608 
    609607        /**
    610608         * Filters the terms query SQL clauses.
     
    616614         * @param array $args       An array of terms query arguments.
    617615         */
    618         $clauses = apply_filters( 'terms_clauses', compact( $pieces ), $taxonomies, $args );
     616        $clauses = apply_filters( 'terms_clauses', compact( 'fields', 'join', 'where', 'distinct', 'orderby', 'order', 'limits' ), $taxonomies, $args );
    619617
    620618        $fields = isset( $clauses[ 'fields' ] ) ? $clauses[ 'fields' ] : '';
Note: See TracChangeset for help on using the changeset viewer.