Make WordPress Core

Opened 16 months ago

Closed 16 months ago

Last modified 16 months ago

#47345 closed defect (bug) (invalid)

Not right count posts in "All" section

Reported by: nsinelnikov Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: Posts, Post Types Keywords: close
Focuses: administration Cc:


Hi guys,

I have detected, there isn't a correct count in "All" section in the Posts list table. The screenshot with the issue here https://www.screencast.com/t/yrusmc7PtRh2

Let me know,

Attachments (1)

Screenshot 2019-05-22 at 1.41.40 PM.png (229.5 KB) - added by dkarfa 16 months ago.

Download all attachments as: .zip

Change History (7)

#1 @dkarfa
16 months ago

Working perfectly at 5.2.1, attached screenshot.

#2 @earnjam
16 months ago

  • Keywords reporter-feedback added

Hi @nsinelnikov and welcome to WordPress Trac!

I'm not seeing incorrect counts there on my testing. I'd recommend testing with your plugins deactivated and the default theme. Can you do that and confirm the issue remains?

Another possibility is an object cache holding on to an older count.

#3 @nsinelnikov
16 months ago

  • Keywords close has-patch added; needs-testing needs-patch reporter-feedback removed

Hi guys,

Ahh, I have found in my DB the posts with the custom post statuses, which were registered in the currently inactive plugin.

So maybe I have a suggestion in the future to count the "All" only for posts with active post statuses, e.g. to check post_status like this string in mySQL

AND post_status IN ( "' . implode( '","', $active_post_statuses ) . '" )

Thanks and sorry again! Have a nice day!

#4 @mukesh27
16 months ago

  • Focuses administration added
  • Keywords has-patch removed
  • Resolution set to wontfix
  • Status changed from new to closed
  • Version 5.2.1 deleted

Thanks for reporting this and your idea, @nsinelnikov! I am going to close this one.

Feel free to reopen if you think issue is in Core software.

#5 @earnjam
16 months ago

  • Milestone Awaiting Review deleted

#6 @SergeyBiryukov
16 months ago

  • Resolution changed from wontfix to invalid

Related: #12706

Note: See TracTickets for help on using tickets.