Changeset 53375
- Timestamp:
- 05/10/2022 11:15:28 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-query.php
r53370 r53375 2755 2755 } 2756 2756 2757 $pieces = array( 'where', 'groupby', 'join', 'orderby', 'distinct', 'fields', 'limits' ); 2758 2757 2759 /* 2758 2760 * Apply post-paging filters on where and join. Only plugins that … … 2833 2835 */ 2834 2836 $fields = apply_filters_ref_array( 'posts_fields', array( $fields, &$this ) ); 2835 2836 $clauses = array( 'where', 'groupby', 'join', 'orderby', 'distinct', 'fields', 'limits' );2837 2837 2838 2838 /** … … 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'] : ''; … … 2968 2968 $limits = apply_filters_ref_array( 'post_limits_request', array( $limits, &$this ) ); 2969 2969 2970 $clauses = array( 'where', 'groupby', 'join', 'orderby', 'distinct', 'fields', 'limits' );2971 2972 2970 /** 2973 2971 * Filters all query clauses at once, for convenience. … … 2993 2991 * @param WP_Query $query The WP_Query instance (passed by reference). 2994 2992 */ 2995 $clauses = (array) apply_filters_ref_array( 'posts_clauses_request', array( compact( $ clauses ), &$this ) );2993 $clauses = (array) apply_filters_ref_array( 'posts_clauses_request', array( compact( $pieces ), &$this ) ); 2996 2994 2997 2995 $where = isset( $clauses['where'] ) ? $clauses['where'] : '';
Note: See TracChangeset
for help on using the changeset viewer.