From ca86a8a404ed71367550924dfad3b79b232c6021 Mon Sep 17 00:00:00 2001 From: Boone Gorges Date: Sat, 3 Oct 2015 01:27:24 +0000 Subject: [PATCH] Remove dead code added to `get_comment_link()` in [34735]. See #34073. Built from https://develop.svn.wordpress.org/trunk@34792 git-svn-id: http://core.svn.wordpress.org/trunk@34757 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/comment-template.php | 8 -------- wp-includes/version.php | 2 +- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/wp-includes/comment-template.php b/wp-includes/comment-template.php index aae342f06d..99cd5716e2 100644 --- a/wp-includes/comment-template.php +++ b/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. diff --git a/wp-includes/version.php b/wp-includes/version.php index 705666921a..b2583a8af6 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.4-alpha-34791'; +$wp_version = '4.4-alpha-34792'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.