summaryrefslogtreecommitdiffstats
path: root/wp-comments-post.php
diff options
context:
space:
mode:
authordonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2006-09-29 11:56:38 +0000
committerdonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2006-09-29 11:56:38 +0000
commit75d96f4cc4c576861f38537826dca63b12bd819b (patch)
tree5963bedb5986b2d7f14e650a43921e3ac952411e /wp-comments-post.php
parent3262571895ef526406dd072e518a1a46e956c499 (diff)
downloadwordpress-mu-75d96f4cc4c576861f38537826dca63b12bd819b.tar.gz
wordpress-mu-75d96f4cc4c576861f38537826dca63b12bd819b.tar.xz
wordpress-mu-75d96f4cc4c576861f38537826dca63b12bd819b.zip
WP Merge to rev 4262
git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@784 7be80a69-a1ef-0310-a953-fb0f7c49ff36
Diffstat (limited to 'wp-comments-post.php')
-rw-r--r--wp-comments-post.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/wp-comments-post.php b/wp-comments-post.php
index 0563e0f..155a77b 100644
--- a/wp-comments-post.php
+++ b/wp-comments-post.php
@@ -57,8 +57,9 @@ if ( !$user->ID ) :
setcookie('comment_author_url_' . COOKIEHASH, clean_url($comment->comment_author_url), time() + 30000000, COOKIEPATH, COOKIE_DOMAIN);
endif;
-$location = ( empty( $_POST['redirect_to'] ) ) ? get_permalink( $comment_post_ID ) : $_POST['redirect_to'];
+$location = ( empty($_POST['redirect_to']) ? get_permalink($comment_post_ID) : $_POST['redirect_to'] ) . '#comment-' . $comment_id;
+$location = apply_filters('comment_post_redirect', $location, $comment);
-wp_redirect( $location );
+wp_redirect($location);
?>