Make WordPress Core

Ticket #1673: wp-comments-post.php.diff

File wp-comments-post.php.diff, 479 bytes (added by markjaquith, 20 years ago)
  • wp-comments-post.php

     
    5656
    5757nocache_headers();
    5858
    59 $location = (empty($_POST['redirect_to'])) ? $_SERVER["HTTP_REFERER"] : $_POST['redirect_to'];
     59$location = (empty($_POST['redirect_to'])) ? get_permalink($comment_post_ID) : $_POST['redirect_to'];
    6060
    6161wp_redirect($location);
    6262?>
     63 No newline at end of file