Code Duplication    Length = 4-4 lines in 2 locations

src/wp-admin/menu.php 2 locations

@@ 167-170 (lines=4) @@
164
		$submenu['themes.php'][10] = array( __( 'Menus' ), 'edit_theme_options', 'nav-menus.php' );
165
	}
166
167
	if ( current_theme_supports( 'custom-header' ) && current_user_can( 'customize') ) {
168
		$customize_header_url = add_query_arg( array( 'autofocus' => array( 'control' => 'header_image' ) ), $customize_url );
169
		$submenu['themes.php'][15] = array( __( 'Header' ), $appearance_cap, esc_url( $customize_header_url ), '', 'hide-if-no-customize' );
170
	}
171
172
	if ( current_theme_supports( 'custom-background' ) && current_user_can( 'customize') ) {
173
		$customize_background_url = add_query_arg( array( 'autofocus' => array( 'control' => 'background_image' ) ), $customize_url );
@@ 172-175 (lines=4) @@
169
		$submenu['themes.php'][15] = array( __( 'Header' ), $appearance_cap, esc_url( $customize_header_url ), '', 'hide-if-no-customize' );
170
	}
171
172
	if ( current_theme_supports( 'custom-background' ) && current_user_can( 'customize') ) {
173
		$customize_background_url = add_query_arg( array( 'autofocus' => array( 'control' => 'background_image' ) ), $customize_url );
174
		$submenu['themes.php'][20] = array( __( 'Background' ), $appearance_cap, esc_url( $customize_background_url ), '', 'hide-if-no-customize' );
175
	}
176
177
	unset( $customize_url );
178