Ticket #2211 (closed defect (bug): fixed)

Opened 3 years ago

Last modified 2 years ago

Posts dated in the future increment the category counts prematurely

Reported by: plankers Assigned to: markjaquith
Priority: normal Milestone: 2.1
Component: Administration Version: 2.0
Severity: normal Keywords: timestamp category
Cc:

Description

Hello. Using WordPress 2.0, if I edit the timestamp and set the time into the future (to publish at a specific time), the category number counts increment prematurely. For instance, if I have 10 prior posts in "Uncategorized," and set my 11th post to display tomorrow, the sidebar will show "Uncategorized (11)" even though the 11th post isn't displayed yet.

It appears to affect all cases where the number of posts in a category is displayed.

I am completely unfamiliar with the internals of WordPress, so I apologize for not attaching a patch. I'm guessing that it just requires an additional condition (timestamp <= NOW()) on the SELECT statement that computes the post counts.

Thank you!

Change History

02/12/06 05:30:48 changed by markjaquith

  • owner changed from anonymous to markjaquith.
  • status changed from new to assigned.
  • milestone set to 2.1.

This should be fixed when we convert to post_status='future'

<= '$now' is going to be discontinued.

08/30/06 09:44:28 changed by ryan

  • status changed from assigned to closed.
  • resolution set to fixed.