WordPress.org

Make WordPress Core

Changeset 15791


Ignore:
Timestamp:
10/13/10 13:45:53 (6 years ago)
Author:
scribu
Message:

Restore previous filter order in WP_Query. See #14997

File:
1 edited

Legend:

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

    r15775 r15791  
    21872187        // manipulate paging queries should use these hooks. 
    21882188        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 ) ); 
    21892193            $distinct   = apply_filters_ref_array( 'posts_distinct',    array( $distinct, &$this ) ); 
     2194            $limits     = apply_filters_ref_array( 'post_limits',       array( $limits, &$this ) ); 
    21902195            $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 ) );  
    21962196 
    21972197            // Also apply a filter on all clauses at once, for convenience 
     
    22132213        // Filter again for the benefit of caching plugins.  Regular plugins should use the hooks above. 
    22142214        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 ) ); 
    22222222        } 
    22232223 
Note: See TracChangeset for help on using the changeset viewer.