mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 20:30:23 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user