Code Duplication    Length = 11-11 lines in 2 locations

wp-includes/admin-bar.php 2 locations

@@ 744-754 (lines=11) @@
741
	if ( current_theme_supports( 'menus' ) || current_theme_supports( 'widgets' ) )
742
		$wp_admin_bar->add_menu( array( 'parent' => 'appearance', 'id' => 'menus', 'title' => __('Menus'), 'href' => admin_url('nav-menus.php') ) );
743
744
	if ( current_theme_supports( 'custom-background' ) ) {
745
		$wp_admin_bar->add_menu( array(
746
			'parent' => 'appearance',
747
			'id'     => 'background',
748
			'title'  => __( 'Background' ),
749
			'href'   => admin_url( 'themes.php?page=custom-background' ),
750
			'meta'   => array(
751
				'class' => 'hide-if-customize',
752
			),
753
		) );
754
	}
755
756
	if ( current_theme_supports( 'custom-header' ) ) {
757
		$wp_admin_bar->add_menu( array(
@@ 756-766 (lines=11) @@
753
		) );
754
	}
755
756
	if ( current_theme_supports( 'custom-header' ) ) {
757
		$wp_admin_bar->add_menu( array(
758
			'parent' => 'appearance',
759
			'id'     => 'header',
760
			'title'  => __( 'Header' ),
761
			'href'   => admin_url( 'themes.php?page=custom-header' ),
762
			'meta'   => array(
763
				'class' => 'hide-if-customize',
764
			),
765
		) );
766
	}
767
768
}
769