WordPress.org

Make WordPress Core

Changeset 9508


Ignore:
Timestamp:
11/04/08 03:37:30 (7 years ago)
Author:
ryan
Message:

Redirect back to correct comment page after replying. Props Viper007Bond. fixes #8055

File:
1 edited

Legend:

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

    r9507 r9508  
    8080} 
    8181 
    82 $location = ( empty($_POST['redirect_to']) ? get_comment_link($comment_id) : $_POST['redirect_to'] ) . '#comment-' . $comment_id; 
     82$location = empty($_POST['redirect_to']) ? get_comment_link($comment_id) : $_POST['redirect_to'] . '#comment-' . $comment_id; 
    8383$location = apply_filters('comment_post_redirect', $location, $comment); 
    8484 
Note: See TracChangeset for help on using the changeset viewer.