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
This commit is contained in:
@@ -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 = '';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user