WordPress.org

Make WordPress Core

Ticket #13520: accurate-location-label.13520.diff

File accurate-location-label.13520.diff, 1.0 KB (added by filosofo, 4 years ago)
  • wp-admin/includes/nav-menu.php

     
    405405        $locations = get_registered_nav_menus(); 
    406406        $menus = wp_get_nav_menus(); 
    407407        $menu_locations = get_nav_menu_locations(); 
     408        $first_location = array_shift( array_slice($locations, 0, 1) ); 
    408409        $num_locations = count( array_keys($locations) ); 
    409410 
    410         echo '<p class="howto">' . sprintf( _n('Your theme supports %s menu. Select where you would like it to appear.', 'Your theme supports %s menus. Select where you would like them to appear.', $num_locations), number_format_i18n($num_locations) ) . '</p>'; 
     411        echo '<p class="howto">' . sprintf( _n('Your theme supports %1$s menu. Select which menu appears in %2$s.', 'Your theme supports %1$s menus. Select which menu appears in each location.', $num_locations), number_format_i18n($num_locations), $first_location ) . '</p>'; 
    411412 
    412413        foreach ( $locations as $location => $description ) { 
    413414                ?>