Changeset 20024 for trunk/wp-includes/query.php
- Timestamp:
- 02/28/2012 08:37:47 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/query.php
r19932 r20024 2610 2610 2611 2611 if ( !$q['suppress_filters'] ) { 2612 $this->request = apply_filters ( 'posts_request', $this->request, $this);2612 $this->request = apply_filters_ref_array( 'posts_request', array( $this->request, &$this ) ); 2613 2613 } 2614 2614 … … 2778 2778 return; 2779 2779 2780 $this->found_posts = $wpdb->get_var( apply_filters ( 'found_posts_query', 'SELECT FOUND_ROWS()', $this) );2781 $this->found_posts = apply_filters ( 'found_posts', $this->found_posts, $this);2780 $this->found_posts = $wpdb->get_var( apply_filters_ref_array( 'found_posts_query', array( 'SELECT FOUND_ROWS()', &$this ) ) ); 2781 $this->found_posts = apply_filters_ref_array( 'found_posts', array( $this->found_posts, &$this ) ); 2782 2782 2783 2783 $this->max_num_pages = ceil( $this->found_posts / $q['posts_per_page'] );
Note: See TracChangeset
for help on using the changeset viewer.