[wp-trac] [WordPress Trac] #19739: Filters to allow comments on draft & trash post_status posts
WordPress Trac
noreply at wordpress.org
Thu Oct 8 01:26:53 UTC 2015
#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: 2nd-opinion has-patch | Focuses:
-----------------------------------+-----------------------------
Comment (by iamfriendly):
Replying to [comment:13 johnbillion]:
> Expanding on [https://core.trac.wordpress.org/ticket/19739#comment:9 my
comment above]:
>
> * What's the use case for commenting on a trashed post?
I am unsure here, too. However, if we're allowing commenting on drafts, I
suspect disallowing it on trash posts could be considered strange.
> * When commenting on trashed or draft posts, is the browser redirect
and the permalink in the comment notification emails correct? How does the
browser redirect for a trashed post work?
Works the same way as normal for drafts. Trashed posts can't be 'seen'
from the front-end (you get a 404) but I suspect it could be possible to
comment on them if a user has the post open before it is trashed.
Interestingly, if you try to submit a comment on a post that is moved into
the trash as you're writing your comment, on comment submission, you get a
wsod. This suggests to me that we shouldn't allow comments on trashed
posts.
> * Do draft posts actually list comments on the front end (in the
default themes at least)?
Yes.
>
> I like the idea of allowing commenting on draft post, but I'm not
convinced that allowing the same on trashed posts has any benefit.
Happy to adjust the patch to only allow for drafts, not trashed posts.
Thoughts?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/19739#comment:14>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list