Changeset 33741
- Timestamp:
- 08/25/2015 09:52:45 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-customize-nav-menus.php
r33602 r33741 465 465 $menus = wp_get_nav_menus(); 466 466 467 // Menu lo actions.467 // Menu locations. 468 468 $locations = get_registered_nav_menus(); 469 469 $num_locations = count( array_keys( $locations ) ); 470 $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 ) ); 470 if ( 1 == $num_locations ) { 471 $description = '<p>' . __( 'Your theme supports one menu. Select which menu you would like to use.' ); 472 } else { 473 $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 ) ); 474 } 471 475 $description .= '</p><p>' . __( 'You can also place menus in widget areas with the Custom Menu widget.' ) . '</p>'; 472 476
Note: See TracChangeset
for help on using the changeset viewer.