-
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
Remove the inherit
option from the Comments Query Loop and Comment Template
#39648
Comments
I see that the block works now only when the gutenberg/packages/block-library/src/comment-template/index.php Lines 56 to 59 in ec2ac14
Otherwise, it renders nothing. Maybe the user-facing name of the block should also change to better align with what is capable of doing. It's a Post Comments List with all the options removed. If you look at the PHP implementation of the https://developer.wordpress.org/reference/classes/wp_comment_query/ |
Do you mean dropping the word "Query" from the "Comments Query Loop" name in the block title? |
Maybe. I'm mostly confused at the moment what's the current plan for the block. It's much simpler than all the initial explorations and has limited application. Still, it's a great replacement for the existing Post Comments block that shipped in WordPress 5.9. Well, it also makes me realize that at the moment we have two similar blocks 😄 |
It is, but I guess it's better to make it public without those options in 6.0 and then evaluate the current issues with the non-inherited options than wait until all the problems are solved, don't you think? |
What problem does this address?
#39227 either introduces breaking changes to existing comment pagination functions, OR introduces Gutenberg-dedicated functions that are reliant on how core comments utilize pagination URLs.
But there are underlying challenges brought on when pagination between core comments and comment blocks are out of sync. Both share the same URL, but have to indicate differing indexes of pagination.
What is your proposed solution?
Remove the following options from the Comments Query Loop and Comment Template blocks:
perPage
order
defaultPage
inherit
Additionally, we should ALWAYS inherit the related settings from the core Discussion settings.
The text was updated successfully, but these errors were encountered: