Title: Comments problem
Last modified: August 18, 2016

---

# Comments problem

 *  [Matoo](https://wordpress.org/support/users/matoo/)
 * (@matoo)
 * [21 years, 7 months ago](https://wordpress.org/support/topic/comments-problem-2/)
 * Hello. I migrated from 1.2 to 1.2.1 and since this moment, I have a slight problem
   with pop-up comments.
    When you post a comment through the popup, it reopens 
   the entire post within the popup, instead of just showing the updated comments
   pop-up window. :-// How can I go back to the old way ?

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Anonymous
 * [21 years, 7 months ago](https://wordpress.org/support/topic/comments-problem-2/#post-104126)
 * Hi,
    I am having the same problem. Does anyone have a solution for this?
 *  Anonymous
 * [21 years, 7 months ago](https://wordpress.org/support/topic/comments-problem-2/#post-104130)
 * Me too, having the same problem?? how to make it work??
 *  Thread Starter [Matoo](https://wordpress.org/support/users/matoo/)
 * (@matoo)
 * [21 years, 7 months ago](https://wordpress.org/support/topic/comments-problem-2/#post-104188)
 * I found the solution !
    In fact, it’s related to the wp-comments-post.php file.
   In the 1.2.1 version, your find the following lines at the end of the file : 
   $location = get_permalink($comment_post_ID); It has to be replaced by the following
   line (I just took the 1.2 version) : $location = (empty($_POST[‘redirect_to’]))?
   $_SERVER[“HTTP_REFERER”] : $_POST[‘redirect_to’]; It might be cristal clear for
   some WP guru ! 🙂 I just noticed the difference and thought that the first one
   was calling the wrong url (it loads the entire post in the pop-up) whereas the
   second one really refresh the window according to the former url. Hope it will
   help people in the same trouble ! 😉
 *  Anonymous
 * [21 years, 7 months ago](https://wordpress.org/support/topic/comments-problem-2/#post-104189)
 * mine does have that, and it still pops up a new window after you post. any more
   ideas?

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Comments problem’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 4 replies
 * 2 participants
 * Last reply from: Anonymous
 * Last activity: [21 years, 7 months ago](https://wordpress.org/support/topic/comments-problem-2/#post-104189)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
