-
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
The post comments block displays a deprecated notice for comments.php #22101
Comments
Ideally yes, that said, I was not able to use the "default comments template" on that bloc without triggering this warning. As a second step, this block shouldn't be relying on these php templates and instead we'd need sub blocks like (comment author, comment message, comment date...) to compose the comments list. But this approach won't be explored for the moment, we'll have to do the same for posts first. |
it won't be explored for the moment I fully understand that the team is small, there is not enough time, and that some things will just be easier to do when you have already perfected for example the post items. |
What should I focus my testing on? |
Yes, testing at this stage is not for everywhere, and there's no call for testing yet for this reason. You need to have an adventurous mind still :) and it's fine to hit these road blocks for the moment. That said, here are some good questions that might be good to answer with testing:
The UI is still at a very early stage too but we can start thinking about UX and ways we can simplify it/ clarify it as much as possible (thinking about the Site Builder page) |
There has been multiple calls for testing actually. |
Can you clarify what do you mean by "better" here. (I mean aside the notice tracked in this issue) |
I only meant the notice and the duplication of the form. But I have not attempted to filter the comments, change markup, or style them. |
Closing in favor of #28045 |
Describe the bug
When full site editing is enabled and a post comment block is added to a post,
the following message is shown on the front:
Deprecated: Theme without comments.php is deprecated since version 3.0.0 with no alternative available. Please include a comments.php template in your theme.
It is to my understanding that full site editing themes will not include comments.php, and does not use comments.php if it is included?
The notice is still important for PHP based themes so I'd say this is a Gutenberg issue not a core issue?
To reproduce
Steps to reproduce the behavior:
Expected behavior
I was actually confused by the block itself, not only the deprecated notice.
I expected it to output my comments, or nothing, if the post has no comments: Not the comment form.
-There already is a separate block for the comments form, so in my test, the comment form was duplicated.
Editor version (please complete the following information):
WordPress version: 5.4.1
Gutenberg: Master, latest commit was: b73bb6d
Desktop (please complete the following information):
Windows 10
Chrome version: 81.0.4044.129
The text was updated successfully, but these errors were encountered: