diff --git a/wp-admin/comment.php b/wp-admin/comment.php index ab0235218c..7e86f03cb0 100644 --- a/wp-admin/comment.php +++ b/wp-admin/comment.php @@ -180,8 +180,8 @@ if ( $comment->comment_approved != '0' ) { // if not unapproved if ( $comment->comment_parent ) { $parent = get_comment( $comment->comment_parent ); - $parent_link = esc_url( get_comment_link( $comment->comment_parent ) ); - $name = get_comment_author( $parent->comment_ID ); + $parent_link = esc_url( get_comment_link( $parent ) ); + $name = get_comment_author( $parent ); printf( ' | ' . __( 'In reply to %2$s.' ), $parent_link, $name ); } ?> diff --git a/wp-admin/edit-form-comment.php b/wp-admin/edit-form-comment.php index dda2615134..fe49043927 100644 --- a/wp-admin/edit-form-comment.php +++ b/wp-admin/edit-form-comment.php @@ -121,7 +121,7 @@ if ( $comment->comment_parent ) : $parent = get_comment( $comment->comment_parent ); if ( $parent ) : $parent_link = esc_url( get_comment_link( $comment->comment_parent ) ); - $name = get_comment_author( $parent->comment_ID ); + $name = get_comment_author( $parent ); ?>
comment_approved ) : ?> @@ -313,7 +313,7 @@ class Walker_Comment extends Walker {