Make WordPress Core

Ticket #42170: 42170.2.diff

File 42170.2.diff, 1.5 KB (added by westonruter, 8 years ago)

Condense

  • src/wp-includes/class-wp-customize-nav-menus.php

    diff --git src/wp-includes/class-wp-customize-nav-menus.php src/wp-includes/class-wp-customize-nav-menus.php
    index 6c2a98b835..edad3fc694 100644
    final class WP_Customize_Nav_Menus { 
    414414                                'page_label'             => get_post_type_object( 'page' )->labels->singular_name,
    415415                                /* translators: %s:      menu location */
    416416                                'menuLocation'           => _x( '(Currently set to: %s)', 'menu' ),
    417                                 'locationsTitle'         => _n( 'Menu Location', 'Menu Locations', $num_locations ),
     417                                'locationsTitle'         => 1 === $num_locations ? __( 'Menu Location' ) : __( 'Menu Locations' ),
    418418                                'locationsDescription'   => $locations_description,
    419419                                'menuNameLabel'          => __( 'Menu Name' ),
    420420                                'newMenuNameDescription' => __( 'If your theme has multiple menus, giving them clear names will help you manage them.' ),
    final class WP_Customize_Nav_Menus { 
    584584                }
    585585
    586586                $this->manager->add_section( 'menu_locations', array(
    587                         'title'       => _nx( 'View Location', 'View All Locations', $num_locations, 'menu locations' ),
     587                        'title'       => 1 === $num_locations ? _x( 'View Location', 'menu locations' ) : _x( 'View All Locations', 'menu locations' ),
    588588                        'panel'       => 'nav_menus',
    589589                        'priority'    => 30,
    590                         'description' => $description
     590                        'description' => $description,
    591591                ) );
    592592
    593593                $choices = array( '0' => __( '— Select —' ) );