• Hello all. I have noticed that if you don’t fill any field of the comment form and you hit the back button of the browser, the message dissapear. This is a problem if you have typed a long comment and you forget to type the email or the name.

    How can I store that variable in wp-comment-post.php so the message is there after pushing back button in browser?

    Thanks in advanced.

Viewing 2 replies - 1 through 2 (of 2 total)
  • I’m quite sure that’s a browser/caching thing… as it happens to me on just about every site I use, though it’s intermittent… sometimes it’s there, other times it’s not, but it doesn’t have anything to do with the site specifically…

    Thread Starter kish

    (@kish)

    I don’t think that it is a browser/caching problem as in the same browser/computer it occurs in most of sites but not in mine. Other computers I’ve tested with (friends, work, laptop…), the behaviour is the same.

    I am sure that it is some configuration issue. In fact, I got the solution writing the variable before displaying the error ($comment_content = ‘comment’ or something). But the empty field check did not work…

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Recover form fields in comments when “Back button” is pushed after error’ is closed to new replies.