Skip to content
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

Closed
carolinan opened this issue May 5, 2020 · 8 comments
Closed
Labels
[Block] Comments (legacy) The legacy mode of the Comments block (formerly known as Post Comments) [Type] Bug An existing feature does not function as intended

Comments

@carolinan
Copy link
Contributor

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:

  1. Enable full site editing
  2. Create a post and add a post comment block, save.
  3. View the front
  4. See the notice.

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

@youknowriad
Copy link
Contributor

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?

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.

@youknowriad youknowriad added [Feature] Full Site Editing [Type] Bug An existing feature does not function as intended labels May 5, 2020
@carolinan
Copy link
Contributor Author

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.
But this is why people hesitate to even test full site editing, it just feels like waste of time.

@carolinan
Copy link
Contributor Author

What should I focus my testing on?

@youknowriad
Copy link
Contributor

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:

  • What blocks are missing to achieve the desired theme templates?
  • What block options are missing for the existing blocks?
  • What custom CSS you had to write for your theme that should/can be replaced with block options instead.

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)

@carolinan
Copy link
Contributor Author

There has been multiple calls for testing actually.
My purpose is not to to stand in your way by littering Github with errors that you already know about :)
A better working comments block would be one of the blocks that are missing.

@youknowriad
Copy link
Contributor

A better working comments block would be one of the blocks that are missing.

Can you clarify what do you mean by "better" here. (I mean aside the notice tracked in this issue)

@carolinan
Copy link
Contributor Author

I only meant the notice and the duplication of the form.
The output of the actual comments, when they exist, works fine.

But I have not attempted to filter the comments, change markup, or style them.
It is not at all clear to me if a comment walker would still work.
I have not tried to change any comment settings in the WordPress admin to see how they affect the block, including the number of comments to show on the first page, gravatar visibility, comment navigation etc.

@carolinan carolinan added the [Block] Comments Affects the Comments Block - formerly known as Comments Query Loop label Jun 4, 2020
@carolinan
Copy link
Contributor Author

Closing in favor of #28045

@gziolo gziolo added [Block] Comments (legacy) The legacy mode of the Comments block (formerly known as Post Comments) and removed [Block] Comments Affects the Comments Block - formerly known as Comments Query Loop labels Oct 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Block] Comments (legacy) The legacy mode of the Comments block (formerly known as Post Comments) [Type] Bug An existing feature does not function as intended
Projects
None yet
Development

No branches or pull requests

3 participants