WordPress.org

Make WordPress Core

Changeset 14767


Ignore:
Timestamp:
05/20/2010 09:25:25 PM (8 years ago)
Author:
ryan
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/nav-menu.php

    r14761 r14767  
    406406    $menus = wp_get_nav_menus();
    407407    $menu_locations = get_nav_menu_locations();
     408    $num_locations = count( array_keys($locations) );
     409
     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>';
    408411
    409412    foreach ( $locations as $location => $description ) {
Note: See TracChangeset for help on using the changeset viewer.