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.