WordPress.org

Make WordPress Core

Opened 8 months ago

Closed 8 months ago

Last modified 8 months ago

#49918 closed defect (bug) (invalid)

Issue related to then comment count in edit comment page.

Reported by: sumitsingh Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: Comments Keywords:
Focuses: administration Cc:

Description

Hi,

I have develop some custom plugin & exclude our comment in comment listing using this action(pre_get_comments). comment have been removed but comment count still showing all number of comment.may be i am using some wrong hook. if any other hook for remove custom comment in the listing & also count exclude in edit-comments.php page. let us know please.

More information see mentioned screenshot.

Thanks

Attachments (2)

36d1f210-3571-409b-8d29-d8e9ffc1bae6.png (111.9 KB) - added by sumitsingh 8 months ago.
Error screenshot file
65c3d915-615a-451f-bc4d-4f66043661e9.png (105.4 KB) - added by sumitsingh 8 months ago.
Error screenshot file on latest WP version

Download all attachments as: .zip

Change History (6)

@sumitsingh
8 months ago

Error screenshot file

@sumitsingh
8 months ago

Error screenshot file on latest WP version

#1 @mukesh27
8 months ago

  • Keywords reporter-feedback removed
  • Resolution set to invalid
  • Status changed from new to closed

Hi there, welcome to WordPress Trac! Thanks for the ticket.

I'm sorry to hear you are having issues with WordPress. Please note that this Trac is used for enhancements and bug reporting for the WordPress core software, not for third-party/custom plugin, or individual support questions.

Try the support forums to get help with your custom plugin: https://wordpress.org/support/forums/.

Feel free to reopen with more details if it turns out to be an issue in WordPress core.

#2 in reply to: ↑ description @SergeyBiryukov
8 months ago

Hi there, thanks for the ticket!

I have develop some custom plugin & exclude our comment in comment listing using this action(pre_get_comments). comment have been removed but comment count still showing all number of comment.may be i am using some wrong hook.

You can use the wp_count_comments filter to change the counts as appropriate.

#3 follow-up: @SergeyBiryukov
8 months ago

  • Milestone Awaiting Review deleted

#4 in reply to: ↑ 3 @sumitsingh
8 months ago

Hi @SergeyBiryukov ,

Thank you so much for give me solution. I will try after weekend and inform you.

Thanks again :)

Replying to SergeyBiryukov:

Note: See TracTickets for help on using tickets.