Make WordPress Core


Ignore:
Timestamp:
09/28/2006 07:16:15 PM (18 years ago)
Author:
ryan
Message:

comment_post_redirect and comment_edit_redirect from Mark J. fixes #2590

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-comments-post.php

    r4144 r4260  
    5858endif;
    5959
    60 $location = ( empty( $_POST['redirect_to'] ) ) ? get_permalink( $comment_post_ID ) : $_POST['redirect_to'];
     60$location = ( empty($_POST['redirect_to']) ? get_permalink($comment_post_ID) : $_POST['redirect_to'] ) . '#comment-' . $comment_id;
     61$location = apply_filters('comment_post_redirect', $location, $comment);
    6162
    62 wp_redirect( $location );
     63wp_redirect($location);
    6364
    6465?>
Note: See TracChangeset for help on using the changeset viewer.