Changeset 52974 for trunk/src/wp-includes/class-wp-query.php
- Timestamp:
- 03/21/2022 12:20:22 PM (4 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/class-wp-query.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-query.php
r52973 r52974 2742 2742 } 2743 2743 2744 $ pieces = array( 'where', 'groupby', 'join', 'orderby', 'distinct', 'fields', 'limits' );2744 $clauses = compact( 'where', 'groupby', 'join', 'orderby', 'distinct', 'fields', 'limits' ); 2745 2745 2746 2746 /* … … 2844 2844 * @param WP_Query $query The WP_Query instance (passed by reference). 2845 2845 */ 2846 $clauses = (array) apply_filters_ref_array( 'posts_clauses', array( compact( $pieces ), &$this ) );2846 $clauses = (array) apply_filters_ref_array( 'posts_clauses', array( $clauses, &$this ) ); 2847 2847 2848 2848 $where = isset( $clauses['where'] ) ? $clauses['where'] : ''; … … 2965 2965 * @since 3.1.0 2966 2966 * 2967 * @param string[] $ pieces {2967 * @param string[] $clauses { 2968 2968 * Associative array of the clauses for the query. 2969 2969 * … … 2978 2978 * @param WP_Query $query The WP_Query instance (passed by reference). 2979 2979 */ 2980 $clauses = (array) apply_filters_ref_array( 'posts_clauses_request', array( compact( $pieces ), &$this ) );2980 $clauses = (array) apply_filters_ref_array( 'posts_clauses_request', array( $clauses, &$this ) ); 2981 2981 2982 2982 $where = isset( $clauses['where'] ) ? $clauses['where'] : '';
Note: See TracChangeset
for help on using the changeset viewer.