WordPress.org

Make WordPress Core


Ignore:
Timestamp:
03/24/2014 09:29:14 PM (7 years ago)
Author:
nacin
Message:

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

props ethitter.
fixes #26937.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/link-template.php

    r27635 r27692  
    12941294            'posts_per_page'      => 1,
    12951295            'post_status'         => 'publish',
    1296             'post_type'           => 'post',
     1296            'post_type'           => $this->current_post->post_type,
    12971297            'orderby'             => 'date',
    12981298            'order'               => 'previous' === $this->adjacent ? 'DESC' : 'ASC',
Note: See TracChangeset for help on using the changeset viewer.