Changeset 6338

Show
Ignore:
Timestamp:
11/17/07 00:04:19 (8 months ago)
Author:
ryan
Message:

Move posts_selection action to after post_limits filter.

Files:

Legend:

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

    r6310 r6338  
    12311231        // manipulate paging queries should use these hooks. 
    12321232 
    1233         // Announce current selection parameters.  For use by caching plugins. 
    1234         do_action( 'posts_selection', $where . $groupby . $q['orderby'] . $limits . $join ); 
    1235  
    12361233        $where = apply_filters('posts_where_paged', $where); 
    12371234        $groupby = apply_filters('posts_groupby', $groupby); 
     
    12481245        if ( !empty($limits) ) 
    12491246            $found_rows = 'SQL_CALC_FOUND_ROWS'; 
     1247 
     1248        // Announce current selection parameters.  For use by caching plugins. 
     1249        do_action( 'posts_selection', $where . $groupby . $q['orderby'] . $limits . $join ); 
    12501250 
    12511251        $request = " SELECT $found_rows $distinct $fields FROM $wpdb->posts $join WHERE 1=1 $where $groupby $orderby $limits";