Make sure a commenter doesn't receive a blank screen when comment is rejected
|Reported by:||solarissmoke||Owned by:|
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:
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.