From 7c6d2b0d6181cdde55d1302774ff80dfa9d3bea6 Mon Sep 17 00:00:00 2001 From: Rachel Baker Date: Mon, 18 Jan 2016 16:34:54 +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. git-svn-id: https://develop.svn.wordpress.org/trunk@36343 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/comment-template.php | 1 - 1 file changed, 1 deletion(-) diff --git a/src/wp-includes/comment-template.php b/src/wp-includes/comment-template.php index efb6285bae..870131f546 100644 --- a/src/wp-includes/comment-template.php +++ b/src/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 = ''; }