Make WordPress Core


Ignore:
Timestamp:
11/17/2007 12:04:19 AM (17 years ago)
Author:
ryan
Message:

Move posts_selection action to after post_limits filter.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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";
Note: See TracChangeset for help on using the changeset viewer.