Code Duplication    Length = 3-4 lines in 2 locations

src/wp-admin/nav-menus.php 1 location

@@ 613-615 (lines=3) @@
610
	if ( $locations_screen ) :
611
		if ( 1 == $num_locations ) {
612
			echo '<p>' . __( 'Your theme supports one menu. Select which menu you would like to use.' ) . '</p>';
613
		} else {
614
			echo '<p>' .  sprintf( _n( 'Your theme supports %s menu. Select which menu appears in each location.', 'Your theme supports %s menus. Select which menu appears in each location.', $num_locations ), number_format_i18n( $num_locations ) ) . '</p>';
615
		}
616
	?>
617
	<div id="menu-locations-wrap">
618
		<form method="post" action="<?php echo esc_url( add_query_arg( array( 'action' => 'locations' ), admin_url( 'nav-menus.php' ) ) ); ?>">

src/wp-includes/class-wp-customize-nav-menus.php 1 location

@@ 579-582 (lines=4) @@
576
		$num_locations = count( array_keys( $locations ) );
577
		if ( 1 == $num_locations ) {
578
			$description = '<p>' . __( 'Your theme supports one menu. Select which menu you would like to use.' ) . '</p>';
579
		} else {
580
			/* translators: %s: number of menu locations */
581
			$description = '<p>' . sprintf( _n( 'Your theme supports %s menu. Select which menu appears in each location.', 'Your theme supports %s menus. Select which menu appears in each location.', $num_locations ), number_format_i18n( $num_locations ) ) . '</p>';
582
		}
583
		if ( current_theme_supports( 'widgets' ) ) {
584
			/* translators: URL to the widgets panel of the customizer */
585
			$description .= '<p>' . sprintf( __( 'You can also place menus in <a href="%s">widget areas</a> with the &#8220;Custom Menu&#8221; widget.' ), "javascript:wp.customize.panel( 'widgets' ).focus();" ) . '</p>';