Skip to content

Conversation

@karthick-murugan
Copy link
Contributor

What?

Closes #71245

This PR restores the ability to add block-level comments on published posts. Previously, the functionality was removed in #66583, but this update ensures that users can continue to add comments even after a post has been published.

Why?

There are many use cases where published posts still receive updates or collaborative changes. Without this fix, users cannot add block-level comments once a post is published, which limits collaboration and feedback opportunities.
This PR makes block commenting consistent across draft and published states.

Testing Instructions

  1. Enable the block-level commenting experiment via
    wp-admin/admin.php?page=gutenberg-experiments.
  2. Create a new draft.
  3. Add block comments to one or more blocks.
  4. Publish the post.
  5. Verify that new comments can still be added to blocks on the published post.

Testing Instructions for Keyboard

  1. Navigate to a published post using only the keyboard.
  2. Focus on a block that already has comments.
  3. Confirm that it is possible to add a new block comment via keyboard navigation (no reliance on mouse).

Screenshots or screencast

image

@github-actions
Copy link

github-actions bot commented Aug 21, 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: karthick-murugan <[email protected]>
Co-authored-by: adamsilverstein <[email protected]>
Co-authored-by: Mamaduka <[email protected]>
Co-authored-by: joemcgill <[email protected]>

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

@t-hamano t-hamano added [Type] Enhancement A suggestion for improvement. Collaborative Workflows Phase 3 of the Gutenberg roadmap around all-things related to collaborative workflows labels Aug 22, 2025
Copy link
Member

@adamsilverstein adamsilverstein left a comment

Choose a reason for hiding this comment

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

Looks good!

@github-project-automation github-project-automation bot moved this to 🔎 Needs Review in WordPress 6.9 Editor Tasks Sep 11, 2025
@adamsilverstein adamsilverstein added the [Status] In Progress Tracking issues with work in progress label Sep 11, 2025
@adamsilverstein adamsilverstein changed the title Comments on published post Enable inline comments on published post Sep 11, 2025
@adamsilverstein
Copy link
Member

@t-hamano does this look ok to you? Do you have any context for why commenting was disabled for published posts previously?

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.

We can merge this. IIRC, the condition was temporary.

P.S. Rebasing should restart stalled tests.

@Mamaduka Mamaduka added props-bot Manually triggers Props Bot to ensure the list of props is up to date. and removed [Status] In Progress Tracking issues with work in progress labels Sep 12, 2025
@github-actions github-actions bot removed the props-bot Manually triggers Props Bot to ensure the list of props is up to date. label Sep 12, 2025
@karthick-murugan
Copy link
Contributor Author

We can merge this. IIRC, the condition was temporary.

P.S. Rebasing should restart stalled tests.

Rebased.

@Mamaduka Mamaduka merged commit 3cf0226 into WordPress:trunk Sep 12, 2025
67 checks passed
@github-project-automation github-project-automation bot moved this from 🔎 Needs Review to ✅ Done in WordPress 6.9 Editor Tasks Sep 12, 2025
@github-actions github-actions bot added this to the Gutenberg 21.7 milestone Sep 12, 2025
@karthick-murugan karthick-murugan deleted the comments-on-published-post branch September 12, 2025 06:57
@t-hamano
Copy link
Contributor

t-hamano commented Sep 15, 2025

Sorry for the comment after the PR has been merged.

This PR unintentionally exposed the block commenting to the template or template parts editor. I think we'll need to somehow disable block comments for any screens or post types where they don't work. See #66377 (comment) for more details.

@Mamaduka
Copy link
Member

Maybe support for block comments should be declared on the Post Type level.

@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] Enhancement A suggestion for improvement.

Projects

Development

Successfully merging this pull request may close these issues.

Block comments: Add support for comments on published posts

4 participants