Changeset 15791
- Timestamp:
- 10/13/2010 01:45:53 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/query.php
r15775 r15791 2187 2187 // manipulate paging queries should use these hooks. 2188 2188 if ( !$q['suppress_filters'] ) { 2189 $where = apply_filters_ref_array( 'posts_where_paged', array( $where, &$this ) ); 2190 $groupby = apply_filters_ref_array( 'posts_groupby', array( $groupby, &$this ) ); 2191 $join = apply_filters_ref_array( 'posts_join_paged', array( $join, &$this ) ); 2192 $orderby = apply_filters_ref_array( 'posts_orderby', array( $orderby, &$this ) ); 2189 2193 $distinct = apply_filters_ref_array( 'posts_distinct', array( $distinct, &$this ) ); 2194 $limits = apply_filters_ref_array( 'post_limits', array( $limits, &$this ) ); 2190 2195 $fields = apply_filters_ref_array( 'posts_fields', array( $fields, &$this ) ); 2191 $where = apply_filters_ref_array( 'posts_where_paged', array( $where, &$this ) );2192 $join = apply_filters_ref_array( 'posts_join_paged', array( $join, &$this ) );2193 $groupby = apply_filters_ref_array( 'posts_groupby', array( $groupby, &$this ) );2194 $orderby = apply_filters_ref_array( 'posts_orderby', array( $orderby, &$this ) );2195 $limits = apply_filters_ref_array( 'post_limits', array( $limits, &$this ) );2196 2196 2197 2197 // Also apply a filter on all clauses at once, for convenience … … 2213 2213 // Filter again for the benefit of caching plugins. Regular plugins should use the hooks above. 2214 2214 if ( !$q['suppress_filters'] ) { 2215 $ distinct = apply_filters_ref_array( 'posts_distinct_request',array( $distinct, &$this ) );2216 $ fields = apply_filters_ref_array( 'posts_fields_request', array( $fields, &$this ) );2217 $ where = apply_filters_ref_array( 'posts_where_request', array( $where, &$this ) );2218 $ join = apply_filters_ref_array( 'posts_join_request', array( $join, &$this ) );2219 $ groupby = apply_filters_ref_array( 'posts_groupby_request', array( $groupby, &$this ) );2220 $ orderby = apply_filters_ref_array( 'posts_orderby_request', array( $orderby, &$this ) );2221 $limits = apply_filters_ref_array( 'post_limits_request', array( $limits, &$this ) );2215 $where = apply_filters_ref_array( 'posts_where_request', array( $where, &$this ) ); 2216 $groupby = apply_filters_ref_array( 'posts_groupby_request', array( $groupby, &$this ) ); 2217 $join = apply_filters_ref_array( 'posts_join_request', array( $join, &$this ) ); 2218 $orderby = apply_filters_ref_array( 'posts_orderby_request', array( $orderby, &$this ) ); 2219 $distinct = apply_filters_ref_array( 'posts_distinct_request', array( $distinct, &$this ) ); 2220 $fields = apply_filters_ref_array( 'posts_fields_request', array( $fields, &$this ) ); 2221 $limits = apply_filters_ref_array( 'post_limits_request', array( $limits, &$this ) ); 2222 2222 } 2223 2223
Note: See TracChangeset
for help on using the changeset viewer.