]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-comments-post.php
WordPress 3.3.2-scripts
[autoinstalls/wordpress.git] / wp-comments-post.php
index 648388f4d1450e402ac0b6a7e070d2caf3f3c6d2..9f1dc724c42b1e71596c52476df4a8cb0e244dd2 100644 (file)
@@ -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;
 ?>