WordPress.org

Make WordPress Core

Ticket #13378: 13378.4.diff

File 13378.4.diff, 688 bytes (added by ryan, 5 years ago)

Explanatory text for Theme Locations box.

  • 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        $num_locations = count( array_keys($locations) ); 
    408409 
     410        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>'; 
     411 
    409412        foreach ( $locations as $location => $description ) { 
    410413                ?> 
    411414                <p>