Block-based themes without a comments file trigger a deprecation warning #28045
Labels
[Block] Comments (legacy)
The legacy mode of the Comments block (formerly known as Post Comments)
[Feature] Themes
Questions or issues with incorporating or styling blocks in a theme.
[Status] In Progress
Tracking issues with work in progress
[Type] Bug
An existing feature does not function as intended
Block-based Themes throw up a depreciation warning if they do not include a
comments.php
file:This happens whether or not the theme uses Gutenberg's comment blocks. To get around it, the theme can supply a
comments.php
file... but if they do, then the file's contents will be used to render the content inside of of the post contents block. So for example, using an empty placeholder file to suppress the error will wipe out the display of comments. 😞The rendering of comments.php is tracked as part of #24101, but I'm opening this separate issue to see if we can just suppress that warning for block-based themes. It seems like the warning will continue to be a problem even after #24101 is fixed.
This came up originally in WordPress/theme-experiments#157.
The text was updated successfully, but these errors were encountered: