#13028 closed defect (bug) (duplicate)
Make sure a commenter doesn't receive a blank screen when comment is rejected
Reported by: | solarissmoke | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 3.0 |
Component: | Comments | Keywords: | dev-feedback has-patch |
Focuses: | Cc: |
Description
In the last few changes to wp-comments-post the following action hooks have been added ahead of the pre_comment_on_post action hook:
- comment_on_trash
- comment_on_draft
- comment_on_password_protected
However, none of these hooks have default actions associated with them, which means that on a default install, if someone manages to post a comment on a trashed/draft/protected post, they get a blank screen without any explanation of what went wrong.
I think there should be some default actions here, or some default behaviour in between the action hook and the exit statements.
Proposed patch to follow.
Attachments (1)
Change History (4)
Note: See
TracTickets for help on using
tickets.
xref #11286 for the 403 status header issue. There is no reason WP should return a 500 status error in these cases.