How to make a friendlier comment error message?
-
I have a site that uses WP 2.5.1.
If someone submits an ’empty’ comment (i.e. they just press the submit button), they are shown a blank page with the message ‘Error: please type a comment.’
I think this is a bit poor from a usability point of view, as people are taken out of the post they were commenting about and simply dumped into wp-comments-post.php which shows the error message. (I assume this is something to do with the wp_die function called in wp-comments-post.php when an empty comment is submitted.)
Is there any way of having the error handled better – such as keeping the user on the post they were commenting on and simply showing the error message above the comment form?
Thanks.
- The topic ‘How to make a friendlier comment error message?’ is closed to new replies.