[wp-trac] [WordPress Trac] #54283: Add a hook to allow themes to remove the "Comments are closed." sentence on pages

WordPress Trac noreply at wordpress.org
Tue Nov 2 21:39:27 UTC 2021


#54283: Add a hook to allow themes to remove the "Comments are closed." sentence on
pages
--------------------------------------------------+---------------------
 Reporter:  audrasjb                              |       Owner:  (none)
     Type:  feature request                       |      Status:  new
 Priority:  normal                                |   Milestone:  5.9
Component:  Comments                              |     Version:
 Severity:  normal                                |  Resolution:
 Keywords:  needs-dev-note 2nd-opinion has-patch  |     Focuses:
--------------------------------------------------+---------------------

Comment (by sabernhardt):

 I don't think we need a filter in the theme compat file, which gives a
 deprecation warning when the theme does not have a comments.php template.

 The comments closed message is one of the
 [https://developer.wordpress.org/themes/template-files-section/partial-
 and-miscellaneous-template-files/comment-template/#breaking-down-the-
 comments-php common parts of comments.php], but I was able to edit/remove
 that within the (parent or child) theme.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/54283#comment:9>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list