mirror of
git://develop.git.wordpress.org/
synced 2025-02-26 17:42:26 +01:00
Customizer: Use existing decoupled strings in Menu Locations section. See [31941] and [31951].
props egill. fixes #33416. git-svn-id: https://develop.svn.wordpress.org/trunk@33741 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
a0a351a75d
commit
b73b9ed936
@ -464,10 +464,14 @@ final class WP_Customize_Nav_Menus {
|
||||
) ) );
|
||||
$menus = wp_get_nav_menus();
|
||||
|
||||
// Menu loactions.
|
||||
// Menu locations.
|
||||
$locations = get_registered_nav_menus();
|
||||
$num_locations = count( array_keys( $locations ) );
|
||||
$description = '<p>' . sprintf( _n( 'Your theme contains %s menu location. Select which menu you would like to use.', 'Your theme contains %s menu locations. Select which menu appears in each location.', $num_locations ), number_format_i18n( $num_locations ) );
|
||||
if ( 1 == $num_locations ) {
|
||||
$description = '<p>' . __( 'Your theme supports one menu. Select which menu you would like to use.' );
|
||||
} else {
|
||||
$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 ) );
|
||||
}
|
||||
$description .= '</p><p>' . __( 'You can also place menus in widget areas with the Custom Menu widget.' ) . '</p>';
|
||||
|
||||
$this->manager->add_section( 'menu_locations', array(
|
||||
|
Loading…
x
Reference in New Issue
Block a user