Preview fixes: different method of showing previews for published posts, now uses the proper templates. Fixes #8052

git-svn-id: https://develop.svn.wordpress.org/trunk@9509 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Ozz
2008-11-04 13:00:12 +00:00
parent 9f54a77081
commit 7d45802347
5 changed files with 40 additions and 38 deletions
+3
View File
@@ -2294,6 +2294,9 @@ class WP_Query {
}
}
}
if ( $this->is_preview && current_user_can( "edit_{$post_type}", $this->posts[0]->ID ) )
$this->posts[0] = apply_filters('the_preview', $this->posts[0]);
}
// Put sticky posts at the top of the posts array