From f956379447f7254177575e00a1621ecbb2553062 Mon Sep 17 00:00:00 2001 From: Rachel Baker Date: Mon, 18 Jan 2016 16:35:28 +0000 Subject: [PATCH] Comments: Remove unused `$default_comments_page` variable in `get_comment_link()`. Left in r34735, fetches the `default_comments_page` option twice since this variable is unused. See #34073 and #35511. Props Latz. Built from https://develop.svn.wordpress.org/trunk@36343 git-svn-id: http://core.svn.wordpress.org/trunk@36310 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/comment-template.php | 1 - wp-includes/version.php | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/wp-includes/comment-template.php b/wp-includes/comment-template.php index efb6285bae..870131f546 100644 --- a/wp-includes/comment-template.php +++ b/wp-includes/comment-template.php @@ -730,7 +730,6 @@ function get_comment_link( $comment = null, $args = array() ) { * If the default page displays the oldest comments, the permalinks for comments on the default page * do not need a 'cpage' query var. */ - $default_comments_page = get_option( 'default_comments_page' ); if ( 'oldest' === get_option( 'default_comments_page' ) && 1 === $cpage ) { $cpage = ''; } diff --git a/wp-includes/version.php b/wp-includes/version.php index f51ea230c7..edcbe390d0 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.5-alpha-1453111152441'; +$wp_version = '4.5-alpha-1453134913268'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.