Remove dead code added to get_comment_link() in [34735].

See #34073.

git-svn-id: https://develop.svn.wordpress.org/trunk@34792 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Boone Gorges 2015-10-03 01:26:40 +00:00
parent 217d44bd60
commit e677f26aa8

View File

@ -726,14 +726,6 @@ function get_comment_link( $comment = null, $args = array() ) {
}
}
// Drop the 'page' var if we're on the default page.
$comment_post = get_post( $comment->comment_post_ID );
if ( $args['per_page'] ) {
$total_pages = ceil( $comment_post->comment_count / $args['per_page'] );
} else {
$total_pages = 1;
}
/*
* If the default page displays the oldest comments, the permalinks for comments on the default page
* do not need a 'cpage' query var.