Make WordPress Core

Ticket #33416: 33416.patch

File 33416.patch, 1.3 KB (added by egill, 11 years ago)
  • src/wp-includes/class-wp-customize-nav-menus.php

     
    467467                // Menu loactions.
    468468                $locations     = get_registered_nav_menus();
    469469                $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 location. Select which menu you would like to use.' );
     472                } else {
     473                        $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 ) );
     474                }
    471475                $description  .= '</p><p>' . __( 'You can also place menus in widget areas with the Custom Menu widget.' ) . '</p>';
    472476
    473477                $this->manager->add_section( 'menu_locations', array(