diff --git a/src/wp-admin/comment.php b/src/wp-admin/comment.php index 24b0e16e40..6d11e553ff 100644 --- a/src/wp-admin/comment.php +++ b/src/wp-admin/comment.php @@ -193,7 +193,7 @@ if ( $comment->comment_approved != '0' ) { // if not unapproved %2$s at %3$s' ), - esc_url( get_comment_link( $comment->comment_ID ) ), + esc_url( get_comment_link( $comment ) ), /* translators: comment date format. See http://php.net/date */ get_comment_date( __( 'Y/m/d' ), $comment ), get_comment_date( get_option( 'time_format' ), $comment ) diff --git a/src/wp-admin/edit-form-comment.php b/src/wp-admin/edit-form-comment.php index fe49043927..426d86db40 100644 --- a/src/wp-admin/edit-form-comment.php +++ b/src/wp-admin/edit-form-comment.php @@ -69,7 +69,7 @@ if ( !defined('ABSPATH') )
@@ -120,7 +120,7 @@ if ( current_user_can( 'edit_post', $post_id ) ) { if ( $comment->comment_parent ) : $parent = get_comment( $comment->comment_parent ); if ( $parent ) : - $parent_link = esc_url( get_comment_link( $comment->comment_parent ) ); + $parent_link = esc_url( get_comment_link( $comment ) ); $name = get_comment_author( $parent ); ?>