If you enter incorrect information into the comment forms (missing name, email etc), wordpress returns an empty page with the relevant error message. I googled, but couldn’t find a way to customize this response.
Does anyone know how to do it?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I was unable to find anything on customizing the error page simplistically however a quick glance at wp-comments-post.php tells me that when it runs into an error it executes the function wp_die which generates the error page. It seems to take some arguments which control the output of the error page but couldn’t find any details on what those option might be. With a little tweaking of wp_die you should be able to get it to display your own custom error page. Not sure if this will help but it’s a place to start.