[wp-trac] [WordPress Trac] #19739: Filters to allow comments on draft & trash post_status posts
WordPress Trac
noreply at wordpress.org
Sun Nov 16 04:04:39 UTC 2014
#19739: Filters to allow comments on draft & trash post_status posts
------------------------------------+-----------------------------
Reporter: cyberhobo | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Future Release
Component: Comments | Version: 3.3
Severity: normal | Resolution:
Keywords: needs-docs needs-patch | Focuses:
------------------------------------+-----------------------------
Changes (by johnbillion):
* keywords: dev-feedback has-patch => needs-docs needs-patch
* milestone: Awaiting Review => Future Release
Comment:
Seems sane. A negative hook name isn't a good idea though because you end
up with a double negative to enable the functionality:
`add_filter( 'deny_comment_on_trash', '__return_false' );`
Better hook names would be `allow_comment_on_trash` and
`allow_comment_on_draft`.
Needs some hook docs too.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/19739#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list