Make WordPress Core

Opened 20 years ago

Closed 19 years ago

Last modified 3 years ago

#2371 closed defect (bug) (worksforme)

A problem with counting posts

Reported by: peter-s-savek's profile Peter S. / savek Owned by:
Milestone: Priority: normal
Severity: normal Version: 2.0
Component: General Keywords: count post has-patch has-unit-tests
Focuses: Cc:

Description

A problem with counting posts.

The problem refers to counting posts by "WP". The "kubrick" theme next to the link to category shows also the number of posts in the category. There is the same function in the administration panel, in the category managing section. I have one common (default) category for all the posts. Its value varies in those 2 positions. Additionally the statistisc in "dashboard" also shows an incorrect value. The rest of categories are counting correctly.

The error occurs on two different servers that I have checked.

My Weblog: http://diary.savek.info/

Greetings
Peter S. / savek

Change History (6)

#1 @MichaelH
20 years ago

Problem is likely that the admin panel for Manage Categories calls function cat_rows that is counting both Posts and Pages. If so, that is the same problem reported on 2212 which has a patch.

Can't duplicate the problem savek is reporting where the Dashboard is reporting the incorrect "There are currently x posts..."

#2 @foolswisdom
19 years ago

  • Milestone 2.0.1 deleted
  • Resolution set to worksforme
  • Status changed from new to closed

No update in 8 months. Closing WORKSFORME for now, not tested, based on MichaelH's comment above.

savek, if still an issue with 2.0.4 or trunk please do reopen and I will investigate fruther.

This ticket was mentioned in PR #3419 on WordPress/wordpress-develop by costdev.


3 years ago
#3

  • Keywords has-patch has-unit-tests added

Trac ticket:

afragen commented on PR #3419:


3 years ago
#4

Awesome work and that bug is whacked.

costdev commented on PR #3419:


3 years ago
#5

Additional props to @afragen for helping investigate why the tests were failing.

Note: See TracTickets for help on using tickets.