Changeset 3300

Show
Ignore:
Timestamp:
12/13/05 03:49:09 (3 years ago)
Author:
ryan
Message:

Update post cache before running the_posts filter. Since we already retrieved them, might as well cache them even if they are filtered out by plugins later.

Files:

Legend:

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

    r3297 r3300  
    659659        } 
    660660 
     661        update_post_caches($this->posts); 
     662 
    661663        $this->posts = apply_filters('the_posts', $this->posts); 
    662664        $this->post_count = count($this->posts); 
     
    664666            $this->post = $this->posts[0]; 
    665667        } 
    666  
    667         update_post_caches($this->posts); 
    668668         
    669669        // Save any changes made to the query vars.