[wp-trac] [WordPress Trac] #26937: get_adjacent_post() should use WP_Query rather than build its own SQL query
WordPress Trac
noreply at wordpress.org
Mon Mar 24 21:24:15 UTC 2014
#26937: get_adjacent_post() should use WP_Query rather than build its own SQL query
-------------------------+-----------------------
Reporter: ethitter | Owner: nacin
Type: enhancement | Status: reopened
Priority: normal | Milestone: 3.9
Component: Query | Version: 3.7
Severity: normal | Resolution:
Keywords: has-patch | Focuses:
-------------------------+-----------------------
Changes (by ethitter):
* status: closed => reopened
* resolution: fixed =>
Comment:
[attachment:26937.11.patch] ensures that, by default, the current post
object's post type is respected when determining the adjacent post. This
corrects a regression introduced in r27635.
Tests are updated accordingly, using the `page` post type to test post-
type specific adjacency.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/26937#comment:42>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list