Changeset 2427

Show
Ignore:
Timestamp:
03/10/05 07:01:42 (3 years ago)
Author:
ryan
Message:

Fix comments popup window reload upon post. http://mosquito.wordpress.org/view.php?id=897

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/wp-comments-post.php

    r2359 r2427  
    5151header('Pragma: no-cache'); 
    5252 
    53 $location = get_permalink($comment_post_ID); 
     53$location = (empty($_POST['redirect_to'])) ? $_SERVER["HTTP_REFERER"] : $_POST['redirect_to'];  
    5454 
    5555header("Location: $location");