[wp-trac] [WordPress Trac] #8107: get_next_post, get_previous_post do not work for posts posted within same second
WordPress Trac
noreply at wordpress.org
Sun Mar 9 22:59:30 UTC 2014
#8107: get_next_post, get_previous_post do not work for posts posted within same
second
----------------------------------------+-----------------------------
Reporter: whoismanu | Owner:
Type: defect (bug) | Status: new
Priority: low | Milestone: Future Release
Component: Posts, Post Types | Version: 2.7
Severity: minor | Resolution:
Keywords: needs-testing dev-feedback | Focuses: template
----------------------------------------+-----------------------------
Comment (by Viper007Bond):
You shouldn't need multiple queries, especially for an edge case like this
(not worth adding more queries for 0.0001% of cases). I got it working
with just one via my patch. We should be able to come up with some
solution using `WP_Query, even if we have to add functionality to
`WP_Query`.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/8107#comment:15>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list