Code Duplication    Length = 4-4 lines in 2 locations

wp-includes/link-template.php 2 locations

@@ 3266-3269 (lines=4) @@
3263
3264
	$current_site = get_current_site();
3265
3266
	if ( 'relative' == $scheme )
3267
		$url = $current_site->path;
3268
	else
3269
		$url = set_url_scheme( 'http://' . $current_site->domain . $current_site->path, $scheme );
3270
3271
	if ( $path && is_string( $path ) )
3272
		$url .= ltrim( $path, '/' );
@@ 3312-3315 (lines=4) @@
3309
	if ( ! in_array( $scheme, array( 'http', 'https', 'relative' ) ) )
3310
		$scheme = is_ssl() && ! is_admin() ? 'https' : 'http';
3311
3312
	if ( 'relative' == $scheme )
3313
		$url = $current_site->path;
3314
	else
3315
		$url = set_url_scheme( 'http://' . $current_site->domain . $current_site->path, $scheme );
3316
3317
	if ( $path && is_string( $path ) )
3318
		$url .= ltrim( $path, '/' );