mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-23 00:31:28 +01:00
Some explanatory text for the theme locations box. see #13378
git-svn-id: http://svn.automattic.com/wordpress/trunk@14767 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
e8b8361ffe
commit
f8f9eff02d
@ -405,6 +405,9 @@ function wp_nav_menu_locations_meta_box() {
|
||||
$locations = get_registered_nav_menus();
|
||||
$menus = wp_get_nav_menus();
|
||||
$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 ) {
|
||||
?>
|
||||
|
Loading…
Reference in New Issue
Block a user