WordPress.org

Make WordPress Core

Opened 13 years ago

Closed 12 years ago

#4263 closed defect (bug) (invalid)

get_next_post should not generate link to future article

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

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

Download all attachments as: .zip

Change History (5)

@thomasq
13 years ago

  • Attachment d added

Patch

#1 @rob1n
13 years ago

  • Owner changed from anonymous to rob1n

#2 @rob1n
12 years ago

  • Owner rob1n deleted

#3 @pishmishy
12 years ago

  • Keywords has-patch added

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