[wp-trac] [WordPress Trac] #49294: If multiple posts has same date, get_previous_post() and get_next_post() returns only first/last of them

WordPress Trac noreply at wordpress.org
Sun Jan 26 19:06:30 UTC 2020


#49294: If multiple posts has same date, get_previous_post() and get_next_post()
returns only first/last of them
----------------------------+------------------------------
 Reporter:  oskarijarvelin  |       Owner:  (none)
     Type:  defect (bug)    |      Status:  new
 Priority:  normal          |   Milestone:  Awaiting Review
Component:  General         |     Version:
 Severity:  normal          |  Resolution:
 Keywords:                  |     Focuses:
----------------------------+------------------------------

Comment (by joyously):

 I have seen this in the Theme Unit Test data, because several posts were
 artificially given the same date/time. It probably does not come up much
 in real life to have the exact same date/time on multiple posts. But it is
 still very confusing when it does happen.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/49294#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list