[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
Mon Oct 18 09:25:13 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 needs-patch 2nd-opinion  |     Focuses:
----------------------------------------------------+---------------------

Comment (by Clorith):

 Would this not make more sense as an attribute on the comment block
 instead?

 I'm thinking something along the lines of a "Display a message if comments
 are closed" toggle, that would be flexible enough for block themes to use
 it in any page template that is created I presume, without needing
 additional filtering based on content types.

 I'm not against the idea of a filter here at all, just trying to think
 what gives the most flexibility without over-complicating.

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


More information about the wp-trac mailing list