diff options
author | donncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36> | 2006-09-29 11:56:38 +0000 |
---|---|---|
committer | donncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36> | 2006-09-29 11:56:38 +0000 |
commit | 75d96f4cc4c576861f38537826dca63b12bd819b (patch) | |
tree | 5963bedb5986b2d7f14e650a43921e3ac952411e /wp-comments-post.php | |
parent | 3262571895ef526406dd072e518a1a46e956c499 (diff) | |
download | wordpress-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.php | 5 |
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); ?> |