-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments block: The setting for "Enable threaded (nested) comments" is ignored #44257
Comments
I was able to replicate this with WP 6.0.2 and Gutenberg 14.1.0 using the Twenty Twenty-Three theme. However, I was unable to replicate it in Twenty Twenty-Two, where the comments appear as expected: Perhaps this issue should be opened in the Twenty Twenty-Three repo? |
Twenty Twenty-Three uses the new It's possible that this was working in the old version of the comments block, but is not working in the new one. Edit: I tried inserting both the deprecated |
Thanks so much for reporting and replicating. @Poliuk as a heads up. |
In the editor, when I disable the nested comments, I only see 1 comment, the replies that were created as replies to the first comment, does not show as top level comments. |
Thanks a lot for filing the issue and testing it 🙂 I have just created this Pull Request with a potential solution to fix it. I am not 100% familiar with the code so I am not sure it is the best approach. I've asked @c4rl0sbr4v0 and @DAreRodz to take a look at it because they were more involved in the Comments blocks code. |
Description
If you uncheck the "Enable threaded (nested) comments" in Settings → Discussion, block themes still display threaded/nested comments. This is different from classic themes, in which threaded comments are displayed without nested lists when the setting is unchecked.
Step-by-step reproduction instructions
Screenshots, screen recording, code snippet
Running Twenty Twenty-Three:
Running Twenty Nineteen:
Environment info
WP 6.0.2
Gutenberg 14.1.0
Twenty Twenty-Three and Twenty Nineteen
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Yes
The text was updated successfully, but these errors were encountered: