Make WordPress Core

Opened 17 years ago

Closed 17 years ago

#4263 closed defect (bug) (invalid)

get_next_post should not generate link to future article

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


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 17 years ago.

Download all attachments as: .zip

Change History (5)

17 years ago

  • Attachment d added


#1 @rob1n
17 years ago

  • Owner changed from anonymous to rob1n

#2 @rob1n
17 years ago

  • Owner rob1n deleted

#3 @pishmishy
17 years ago

  • Keywords has-patch added

#4 @markjaquith
17 years ago

  • 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.