Code Duplication    Length = 11-11 lines in 2 locations

src/wp-includes/admin-bar.php 2 locations

@@ 809-819 (lines=11) @@
806
	if ( current_theme_supports( 'menus' ) || current_theme_supports( 'widgets' ) )
807
		$wp_admin_bar->add_menu( array( 'parent' => 'appearance', 'id' => 'menus', 'title' => __('Menus'), 'href' => admin_url('nav-menus.php') ) );
808
809
	if ( current_theme_supports( 'custom-background' ) ) {
810
		$wp_admin_bar->add_menu( array(
811
			'parent' => 'appearance',
812
			'id'     => 'background',
813
			'title'  => __( 'Background' ),
814
			'href'   => admin_url( 'themes.php?page=custom-background' ),
815
			'meta'   => array(
816
				'class' => 'hide-if-customize',
817
			),
818
		) );
819
	}
820
821
	if ( current_theme_supports( 'custom-header' ) ) {
822
		$wp_admin_bar->add_menu( array(
@@ 821-831 (lines=11) @@
818
		) );
819
	}
820
821
	if ( current_theme_supports( 'custom-header' ) ) {
822
		$wp_admin_bar->add_menu( array(
823
			'parent' => 'appearance',
824
			'id'     => 'header',
825
			'title'  => __( 'Header' ),
826
			'href'   => admin_url( 'themes.php?page=custom-header' ),
827
			'meta'   => array(
828
				'class' => 'hide-if-customize',
829
			),
830
		) );
831
	}
832
833
}
834