Use the current post's post type when determining post adjacency.

props ethitter.
fixes #26937.

Built from https://develop.svn.wordpress.org/trunk@27692


git-svn-id: http://core.svn.wordpress.org/trunk@27531 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Andrew Nacin 2014-03-24 21:30:14 +00:00
parent 3ffc6dd559
commit 5eef57ec0e

View File

@ -1293,7 +1293,7 @@ class WP_Adjacent_Post {
$query_args = array(
'posts_per_page' => 1,
'post_status' => 'publish',
'post_type' => 'post',
'post_type' => $this->current_post->post_type,
'orderby' => 'date',
'order' => 'previous' === $this->adjacent ? 'DESC' : 'ASC',
'ignore_sticky_posts' => true,