Skip to content

Fix comment counts with filter#71874

Merged
adamsilverstein merged 9 commits intoWordPress:trunkfrom
adamsilverstein:fix/comment-counts
Sep 26, 2025
Merged

Fix comment counts with filter#71874
adamsilverstein merged 9 commits intoWordPress:trunkfrom
adamsilverstein:fix/comment-counts

Conversation

@adamsilverstein
Copy link
Member

@adamsilverstein adamsilverstein commented Sep 24, 2025

What?

Fix an issue with comment counts showing block_comments as part of the counted comments (specifically the pending comments in the red dots).

Closes #71621

Screenshots or screencast

Note in the before image the counts in the red dot are actually Editorial (Inline block) comments, not front end comments. These are inaccurately shown.

Before After
before after

@github-actions
Copy link

github-actions bot commented Sep 24, 2025

The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the props-bot label.

If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.

Co-authored-by: adamsilverstein <[email protected]>
Co-authored-by: Mamaduka <[email protected]>

To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook.

@adamsilverstein adamsilverstein added [Type] Bug An existing feature does not function as intended Collaborative Workflows Phase 3 of the Gutenberg roadmap around all-things related to collaborative workflows labels Sep 24, 2025
@github-project-automation github-project-automation bot moved this to 🔎 Needs Review in WordPress 6.9 Editor Tasks Sep 24, 2025
@adamsilverstein adamsilverstein moved this from 🔎 Needs Review to 🏗️ In Progress in WordPress 6.9 Editor Tasks Sep 24, 2025
Copy link
Member

@Mamaduka Mamaduka left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A bit tricky filter, but I don't see any other way to override core behavior in the plugin unless we ignore it.

This works well in my tests.

@adamsilverstein adamsilverstein merged commit 2237526 into WordPress:trunk Sep 26, 2025
67 of 68 checks passed
@github-project-automation github-project-automation bot moved this from 🏗️ In Progress to ✅ Done in WordPress 6.9 Editor Tasks Sep 26, 2025
@github-actions github-actions bot added this to the Gutenberg 21.8 milestone Sep 26, 2025
@t-hamano t-hamano added [Feature] Notes Phase 3 of the Gutenberg roadmap around block commenting and removed Collaborative Workflows Phase 3 of the Gutenberg roadmap around all-things related to collaborative workflows labels Oct 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

[Feature] Notes Phase 3 of the Gutenberg roadmap around block commenting [Type] Bug An existing feature does not function as intended

Projects

Development

Successfully merging this pull request may close these issues.

Inline comments display oddly on All post screen

3 participants