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
This commit is contained in:
Rachel Baker 2016-01-18 16:34:54 +00:00
parent 1dbc5b2918
commit 7c6d2b0d61

View File

@ -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 = '';
}