From e677f26aa88966f26262288c3dbbb52d1f313b2c Mon Sep 17 00:00:00 2001 From: Boone Gorges Date: Sat, 3 Oct 2015 01:26:40 +0000 Subject: [PATCH] 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 --- src/wp-includes/comment-template.php | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/wp-includes/comment-template.php b/src/wp-includes/comment-template.php index aae342f06d..99cd5716e2 100644 --- a/src/wp-includes/comment-template.php +++ b/src/wp-includes/comment-template.php @@ -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.