Code Duplication    Length = 4-4 lines in 3 locations

src/wp-includes/general-template.php 3 locations

@@ 788-791 (lines=4) @@
785
function get_site_icon_url( $size = 512, $url = '', $blog_id = 0 ) {
786
	$switched_blog = false;
787
788
	if ( is_multisite() && ! empty( $blog_id ) && (int) $blog_id !== get_current_blog_id() ) {
789
		switch_to_blog( $blog_id );
790
		$switched_blog = true;
791
	}
792
793
	$site_icon_id = get_option( 'site_icon' );
794
@@ 856-859 (lines=4) @@
853
function has_custom_logo( $blog_id = 0 ) {
854
	$switched_blog = false;
855
856
	if ( is_multisite() && ! empty( $blog_id ) && (int) $blog_id !== get_current_blog_id() ) {
857
		switch_to_blog( $blog_id );
858
		$switched_blog = true;
859
	}
860
861
	$custom_logo_id = get_theme_mod( 'custom_logo' );
862
@@ 882-885 (lines=4) @@
879
	$html = '';
880
	$switched_blog = false;
881
882
	if ( is_multisite() && ! empty( $blog_id ) && (int) $blog_id !== get_current_blog_id() ) {
883
		switch_to_blog( $blog_id );
884
		$switched_blog = true;
885
	}
886
887
	$custom_logo_id = get_theme_mod( 'custom_logo' );
888