X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/96bc8e88cf39086a9e0a883b8e2c311fe82a5e97..refs/tags/wordpress-3.3.2-scripts:/wp-comments-post.php?ds=sidebyside diff --git a/wp-comments-post.php b/wp-comments-post.php index 648388f4..9f1dc724 100644 --- a/wp-comments-post.php +++ b/wp-comments-post.php @@ -100,6 +100,6 @@ if ( !$user->ID ) { $location = empty($_POST['redirect_to']) ? get_comment_link($comment_id) : $_POST['redirect_to'] . '#comment-' . $comment_id; $location = apply_filters('comment_post_redirect', $location, $comment); -wp_redirect($location); +wp_safe_redirect( $location ); exit; ?>