Ticket #1673: wp-comments-post.php.diff
File wp-comments-post.php.diff, 479 bytes (added by , 20 years ago) |
---|
-
wp-comments-post.php
56 56 57 57 nocache_headers(); 58 58 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']; 60 60 61 61 wp_redirect($location); 62 62 ?> 63 No newline at end of file