Ticket #2157 (closed defect: wontfix)

Opened 3 years ago

Last modified 3 years ago

Published Articles for Future Appearance Get Counted in Categories

Reported by: schestowitz Assigned to: anonymous
Priority: low Milestone:
Component: Administration Version: 2.0
Severity: normal Keywords: count article categories 2.0
Cc:

Description

This is copied verbatim from the forum because it is clear and well-phrased:

<quote> I routinely "queue up" a long list of articles for future publication. Given my schedule, I can never be sure that I will be around to publish on a given morning, so the queue approach really works for me. I basically just put in a future date, flag it as "published", and save it. Works great under 1.5.

Under 2.0, it still works, but the category list generated by wp_list_cats() reflects even the post-dated articles.

For instance, if a category has 3 articles in it, but one of them is flagged for publication on a future date, it shows "3" for the article count, rather than "2".

Also, if a category only has post-dated articles in it (i.e. nothing viewable by a normal user), the category still shows up in the list.

I would think that the proper behavior would be to only show categories that have current articles in it, and the count for those categories would only reflect current articles. </quote>

* Reported by incursio

Change History

12/30/05 14:53:45 changed by davidhouse

  • status changed from new to closed.
  • resolution set to wontfix.

This can't be done with WordPress' current setup. When setting category_count, we can discount future posts, but as, currently, no events can be triggered when a future post is published, we can't decrement it then. There are bugs to get a scheduler (see #1637) built into WP, so this is another reason why that would be a good thing :)