Code Duplication    Length = 6-6 lines in 2 locations

src/wp-includes/link-template.php 2 locations

@@ 2631-2636 (lines=6) @@
2628
	$result = get_permalink();
2629
2630
	if ( 'newest' == get_option('default_comments_page') ) {
2631
		if ( $pagenum != $max_page ) {
2632
			if ( $wp_rewrite->using_permalinks() )
2633
				$result = user_trailingslashit( trailingslashit($result) . $wp_rewrite->comments_pagination_base . '-' . $pagenum, 'commentpaged');
2634
			else
2635
				$result = add_query_arg( 'cpage', $pagenum, $result );
2636
		}
2637
	} elseif ( $pagenum > 1 ) {
2638
		if ( $wp_rewrite->using_permalinks() )
2639
			$result = user_trailingslashit( trailingslashit($result) . $wp_rewrite->comments_pagination_base . '-' . $pagenum, 'commentpaged');
@@ 2637-2642 (lines=6) @@
2634
			else
2635
				$result = add_query_arg( 'cpage', $pagenum, $result );
2636
		}
2637
	} elseif ( $pagenum > 1 ) {
2638
		if ( $wp_rewrite->using_permalinks() )
2639
			$result = user_trailingslashit( trailingslashit($result) . $wp_rewrite->comments_pagination_base . '-' . $pagenum, 'commentpaged');
2640
		else
2641
			$result = add_query_arg( 'cpage', $pagenum, $result );
2642
	}
2643
2644
	$result .= '#comments';
2645