Opened 6 years ago

Closed 6 years ago

#4263 closed defect (bug) (invalid)

get_next_post should not generate link to future article

Reported by: thomasq Owned by:
Priority: normal Milestone:
Component: General Version:
Severity: normal Keywords: has-patch
Cc:

Description

get_next_post should not take an article into account if it is published but its post_date is in the future.

Attachments (1)

d (953 bytes) - added by thomasq 6 years ago.
Patch

Download all attachments as: .zip

Change History (5)

thomasq6 years ago

  • Attachment d added

Patch

  • Owner changed from anonymous to rob1n
  • Owner rob1n deleted
  • Keywords has-patch added
  • Milestone 2.4 (future) deleted
  • Resolution set to invalid
  • Status changed from new to closed

post_type = 'publish' takes care of this. Posts in the future will have a post_type of 'future'

Re-open if you have steps to reproduce an unexpected result.

Note: See TracTickets for help on using tickets.