Title: Comment error redirect
Last modified: August 18, 2016

---

# Comment error redirect

 *  [waldojefferson](https://wordpress.org/support/users/waldojefferson/)
 * (@waldojefferson)
 * [21 years ago](https://wordpress.org/support/topic/comment-error-redirect/)
 * I am utterly clueless about php, I need someone to tell me
    how to change the
   line in wp-comments-post.php
 * if ( ” == $comment_content )
    die( __(‘Please write a comment’) );
 * I wouls like to change the ‘Please write a comment’ to redirect to a
    pre-defined
   page.
 * Any ideas?
 * Thanks.

The topic ‘Comment error redirect’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [waldojefferson](https://wordpress.org/support/users/waldojefferson/)
 * Last activity: [21 years ago](https://wordpress.org/support/topic/comment-error-redirect/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
