Make WordPress Core

Opened 18 years ago

Closed 18 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:

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 18 years ago.
Patch

Download all attachments as: .zip

Change History (5)

@thomasq
18 years ago

  • Attachment d added

Patch

#1 @rob1n
18 years ago

  • Owner changed from anonymous to rob1n

#2 @rob1n
18 years ago

  • Owner rob1n deleted

#3 @pishmishy
18 years ago

  • Keywords has-patch added

#4 @markjaquith
18 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.