Code Duplication    Length = 4-4 lines in 2 locations

wp-includes/link-template.php 2 locations

@@ 315-318 (lines=4) @@
312
function get_page_link( $post = false, $leavename = false, $sample = false ) {
313
	$post = get_post( $post );
314
315
	if ( 'page' == get_option( 'show_on_front' ) && $post->ID == get_option( 'page_on_front' ) )
316
		$link = home_url('/');
317
	else
318
		$link = _get_page_link( $post, $leavename, $sample );
319
320
	/**
321
	 * Filters the permalink for a page.
@@ 644-647 (lines=4) @@
641
	$unattached = 'attachment' === $post->post_type && 0 === (int) $post->post_parent;
642
643
	if ( '' != get_option('permalink_structure') ) {
644
		if ( 'page' == get_option('show_on_front') && $post_id == get_option('page_on_front') )
645
			$url = _get_page_link( $post_id );
646
		else
647
			$url = get_permalink($post_id);
648
649
		if ( $unattached ) {
650
			$url =  home_url( '/feed/' );