Code Duplication    Length = 4-4 lines in 2 locations

src/wp-includes/comment.php 1 location

@@ 2581-2584 (lines=4) @@
2578
		if ( ! in_array( $link_test, $pung ) && ( url_to_postid( $link_test ) != $post->ID ) // If we haven't pung it already and it isn't a link to itself
2579
				&& !is_local_attachment($link_test) ) : // Also, let's never ping local attachments.
2580
			if ( $test = @parse_url($link_test) ) {
2581
				if ( isset($test['query']) )
2582
					$post_links[] = $link_test;
2583
				elseif ( isset( $test['path'] ) && ( $test['path'] != '/' ) && ( $test['path'] != '' ) )
2584
					$post_links[] = $link_test;
2585
			}
2586
		endif;
2587
	endforeach;

src/wp-includes/functions.php 1 location

@@ 581-584 (lines=4) @@
578
			$test = @parse_url( $link_test );
579
			if ( false === $test )
580
				continue;
581
			if ( isset( $test['query'] ) )
582
				$post_links[] = $link_test;
583
			elseif ( isset($test['path']) && ( $test['path'] != '/' ) &&  ($test['path'] != '' ) )
584
				$post_links[] = $link_test;
585
		}
586
	}
587