This makes things a little more interesting and cacheable (sp?)

git-svn-id: https://develop.svn.wordpress.org/trunk@4517 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Matt Mullenweg
2006-11-23 15:38:22 +00:00
parent 3a6dd43506
commit 63d022fa1a
2 changed files with 35 additions and 8 deletions

View File

@@ -1012,9 +1012,10 @@ class WP_Query {
}
}
$this->posts = apply_filters('the_posts', $this->posts);
update_post_caches($this->posts);
$this->posts = apply_filters('the_posts', $this->posts);
$this->post_count = count($this->posts);
if ($this->post_count > 0) {
$this->post = $this->posts[0];