From 8e9a5a7156bcaead75946d499cf4b68c8552d684 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Wed, 1 Apr 2015 11:36:46 +0000 Subject: [PATCH] After [31941], use the decoupled strings from `WP_Customize_Manager::register_controls()` on the Menus screen. see #28502. git-svn-id: https://develop.svn.wordpress.org/trunk@31951 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/nav-menus.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/wp-admin/nav-menus.php b/src/wp-admin/nav-menus.php index 8878a723bd..1b23358c3c 100644 --- a/src/wp-admin/nav-menus.php +++ b/src/wp-admin/nav-menus.php @@ -562,7 +562,11 @@ require_once( ABSPATH . 'wp-admin/admin-header.php' ); ?> ' . sprintf( _n( 'Your theme supports %s menu. Select which menu you would like to use.', 'Your theme supports %s menus. Select which menu appears in each location.', $num_locations ), number_format_i18n( $num_locations ) ) . '

'; + if ( 1 == $num_locations ) { + echo '

' . __( 'Your theme supports one menu. Select which menu you would like to use.' ) . '

'; + } else { + echo '

' . 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 ) ) . '

'; + } ?>