[wp-trac] [WordPress Trac] #47034: Improvement for when comments are disabled for a post.
WordPress Trac
noreply at wordpress.org
Thu Apr 25 09:27:17 UTC 2019
#47034: Improvement for when comments are disabled for a post.
-----------------------------+-------------------------
Reporter: ajtruckle | Owner: (none)
Type: feature request | Status: closed
Priority: normal | Milestone:
Component: Comments | Version:
Severity: normal | Resolution: worksforme
Keywords: | Focuses:
-----------------------------+-------------------------
Changes (by SergeyBiryukov):
* keywords: close =>
* status: new => closed
* resolution: => worksforme
* milestone: Awaiting Review =>
Comment:
Hi @ajtruckle, welcome to WordPress Trac! Thanks for the ticket.
As noted above, themes can already display a note if comments are
disabled. There's a
[https://developer.wordpress.org/reference/functions/comments_open/
comments_open()] function to check for that.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/47034#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list