Ticket #55699: 55699.patch
| File 55699.patch, 1.7 KB (added by , 4 years ago) |
|---|
-
wp-includes/class-wp-query.php
2754 2754 } 2755 2755 } 2756 2756 2757 $ clauses = array( 'where', 'groupby', 'join', 'orderby', 'distinct', 'fields', 'limits' );2757 $pieces = array( 'where', 'groupby', 'join', 'orderby', 'distinct', 'fields', 'limits' ); 2758 2758 2759 2759 /* 2760 2760 * Apply post-paging filters on where and join. Only plugins that … … 2856 2856 * } 2857 2857 * @param WP_Query $query The WP_Query instance (passed by reference). 2858 2858 */ 2859 $clauses = (array) apply_filters_ref_array( 'posts_clauses', array( compact( $ clauses ), &$this ) );2859 $clauses = (array) apply_filters_ref_array( 'posts_clauses', array( compact( $pieces ), &$this ) ); 2860 2860 2861 2861 $where = isset( $clauses['where'] ) ? $clauses['where'] : ''; 2862 2862 $groupby = isset( $clauses['groupby'] ) ? $clauses['groupby'] : ''; … … 2977 2977 * 2978 2978 * @since 3.1.0 2979 2979 * 2980 * @param string[] $ clauses {2980 * @param string[] $pieces { 2981 2981 * Associative array of the clauses for the query. 2982 2982 * 2983 2983 * @type string $where The WHERE clause of the query. … … 2990 2990 * } 2991 2991 * @param WP_Query $query The WP_Query instance (passed by reference). 2992 2992 */ 2993 $clauses = (array) apply_filters_ref_array( 'posts_clauses_request', array( $clauses, &$this ) );2993 $clauses = (array) apply_filters_ref_array( 'posts_clauses_request', array( compact( $pieces ), &$this ) ); 2994 2994 2995 2995 $where = isset( $clauses['where'] ) ? $clauses['where'] : ''; 2996 2996 $groupby = isset( $clauses['groupby'] ) ? $clauses['groupby'] : '';