Make WordPress Core

Ticket #2891: wp-comments-post.php.diff

File wp-comments-post.php.diff, 402 bytes (added by darkfate, 19 years ago)

patch to improve usability

  • wp-comments-post.php

     
    5959
    6060$location = ( empty( $_POST['redirect_to'] ) ) ? get_permalink( $comment_post_ID ) : $_POST['redirect_to'];
    6161
    62 wp_redirect( $location );
     62wp_redirect( $location . "#comment-" . $comment_id );
    6363
    6464?>