Code Duplication    Length = 6-6 lines in 2 locations

modules/masterbar/admin-menu/class-admin-menu.php 2 locations

@@ 463-468 (lines=6) @@
460
			add_submenu_page( $appearance_slug, esc_attr__( 'Background', 'jetpack' ), __( 'Background', 'jetpack' ), $appearance_cap, esc_url( $customize_background_url ), null, 20 );
461
		}
462
463
		if ( current_theme_supports( 'widgets' ) ) {
464
			remove_submenu_page( 'themes.php', 'widgets.php' );
465
466
			$customize_menu_url = add_query_arg( array( 'autofocus' => array( 'panel' => 'widgets' ) ), $appearance_slug );
467
			add_submenu_page( $appearance_slug, esc_attr__( 'Widgets', 'jetpack' ), __( 'Widgets', 'jetpack' ), $appearance_cap, esc_url( $customize_menu_url ), null, 20 );
468
		}
469
470
		if ( current_theme_supports( 'menus' ) || current_theme_supports( 'widgets' ) ) {
471
			remove_submenu_page( 'themes.php', 'nav-menus.php' );
@@ 470-475 (lines=6) @@
467
			add_submenu_page( $appearance_slug, esc_attr__( 'Widgets', 'jetpack' ), __( 'Widgets', 'jetpack' ), $appearance_cap, esc_url( $customize_menu_url ), null, 20 );
468
		}
469
470
		if ( current_theme_supports( 'menus' ) || current_theme_supports( 'widgets' ) ) {
471
			remove_submenu_page( 'themes.php', 'nav-menus.php' );
472
473
			$customize_menu_url = add_query_arg( array( 'autofocus' => array( 'panel' => 'nav_menus' ) ), $appearance_slug );
474
			add_submenu_page( $appearance_slug, esc_attr__( 'Menus', 'jetpack' ), __( 'Menus', 'jetpack' ), $appearance_cap, esc_url( $customize_menu_url ), null, 20 );
475
		}
476
477
		$this->migrate_submenus( 'themes.php', $appearance_slug );
478
	}