Some explanatory text for the theme locations box. see #13378

git-svn-id: https://develop.svn.wordpress.org/trunk@14767 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2010-05-20 21:25:25 +00:00
parent 82a44c5a3b
commit 3a4313186a
1 changed files with 3 additions and 0 deletions

View File

@ -405,6 +405,9 @@ function wp_nav_menu_locations_meta_box() {
$locations = get_registered_nav_menus(); $locations = get_registered_nav_menus();
$menus = wp_get_nav_menus(); $menus = wp_get_nav_menus();
$menu_locations = get_nav_menu_locations(); $menu_locations = get_nav_menu_locations();
$num_locations = count( array_keys($locations) );
echo '<p>' . sprintf( _n('Your theme supports %s menu. Assign a menu to your theme.', 'Your theme supports %s menus. Assign menus to your theme.', $num_locations), number_format_i18n($num_locations) ) . '</p>';
foreach ( $locations as $location => $description ) { foreach ( $locations as $location => $description ) {
?> ?>