Skip to content

Conversation

@llflannery
Copy link
Contributor

@llflannery llflannery commented Jan 24, 2025

Summary

As titled. Fixes #48

Notes for reviewers

None.

Other Information

  • I updated the README.md file for any new/updated features.
  • I updated the CHANGELOG.md file for any new/updated features.

Changelog entries

Added

Changed

Now the only Comments-related block is Comments Widget (on NYP)

Screenshot 2025-02-04 at 11 32 05 AM

Deprecated

Removed

Four comments-related blocks

  • unregisterBlockType('core/post-comments-form');
  • unregisterBlockType('core/comments');
  • unregisterBlockType('core/comments-query-loop');
  • unregisterBlockType('core/latest-comments');

Fixed

Security

@llflannery llflannery added gutenberg Requires understanding Gutenberg enhancement New feature or request labels Jan 24, 2025
@llflannery llflannery marked this pull request as ready for review January 31, 2025 20:24
@llflannery llflannery requested a review from a team as a code owner January 31, 2025 20:24
Copy link
Member

@kevinfodness kevinfodness left a comment

Choose a reason for hiding this comment

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

Left two comments about making the JavaScript more defensive depending on where it loads in the admin. There's also a failing test (looks to be a PHP linter, but I'm not clear on where it's failing). Let me know when my requested changes are made and when the tests are passing and I'll give it another look and approve. Also let me know if you need help with getting the PHP linter to pass. Thanks for taking this one on!

Copy link
Member

@kevinfodness kevinfodness left a comment

Choose a reason for hiding this comment

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

One stylistic thing to adjust before merge, otherwise 🍣

@llflannery llflannery merged commit 038f91a into main Feb 17, 2025
7 checks passed
@llflannery llflannery deleted the feature/issue-48/disable-comments-blocks branch February 17, 2025 21:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request gutenberg Requires understanding Gutenberg

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Disable_Comments should disable its blocks

4 participants