Make WordPress Core

Changeset 61648


Ignore:
Timestamp:
02/15/2026 07:22:45 PM (8 weeks ago)
Author:
joedolson
Message:

Menus: Improve consistency in describing menu locations.

Menu locations are referred to in various places as 'menu location', 'theme location', or 'display location'.

In some cases these are clear, because both menus and locations are described in the same text. But in other cases they are ambiguous.

Clarify ambiguous uses of 'theme location' and 'menu location' in text.

Props pavelevap, sabernhardt, DrewAPicture, egill, bridgetwillard, obenland, joedolson.
Fixes #33743.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/nav-menus.php

    r61520 r61648  
    557557
    558558/*
    559  * If we have one theme location, and zero menus, we take them right
     559 * If we have one registered menu location, and zero menus, we take them right
    560560 * into editing their first menu.
    561561 */
     
    604604
    605605/*
    606  * Redirect to add screen if there are no menus and this users has either zero,
    607  * or more than 1 theme locations.
     606 * Redirect to add screen if there are no menus and this user has either zero
     607 * or more than one registered menu location.
    608608 */
    609609if ( 0 === $menu_count && ! $add_new_screen && ! $one_theme_location_no_menus ) {
     
    732732    $menu_management .= '<ul><li>' . __( 'To edit an existing menu, <strong>choose a menu from the dropdown and click Select</strong>' ) . '</li>';
    733733    $menu_management .= '<li>' . __( 'If you have not yet created any menus, <strong>click the &#8217;create a new menu&#8217; link</strong> to get started' ) . '</li></ul>';
    734     $menu_management .= '<p>' . __( 'You can assign theme locations to individual menus by <strong>selecting the desired settings</strong> at the bottom of the menu editor. To assign menus to all theme locations at once, <strong>visit the Manage Locations tab</strong> at the top of the screen.' ) . '</p>';
     734    $menu_management .= '<p>' . __( 'You can assign individual menus to the theme&#8217;s menu locations by <strong>selecting the desired settings</strong> at the bottom of the menu editor. To assign menus to all theme menu locations at once, <strong>visit the Manage Locations tab</strong> at the top of the screen.' ) . '</p>';
    735735
    736736    get_current_screen()->add_help_tab(
     
    758758else : // Locations tab.
    759759    $locations_overview  = '<p>' . __( 'This screen is used for globally assigning menus to locations defined by your theme.' ) . '</p>';
    760     $locations_overview .= '<ul><li>' . __( 'To assign menus to one or more theme locations, <strong>select a menu from each location&#8217;s dropdown</strong>. When you are finished, <strong>click Save Changes</strong>' ) . '</li>';
    761     $locations_overview .= '<li>' . __( 'To edit a menu currently assigned to a theme location, <strong>click the adjacent &#8217;Edit&#8217; link</strong>' ) . '</li>';
    762     $locations_overview .= '<li>' . __( 'To add a new menu instead of assigning an existing one, <strong>click the &#8217;Use new menu&#8217; link</strong>. Your new menu will be automatically assigned to that theme location' ) . '</li></ul>';
     760    $locations_overview .= '<ul><li>' . __( 'To assign menus to one or more theme menu locations, <strong>select a menu from each location&#8217;s dropdown</strong>. When you are finished, <strong>click Save Changes</strong>' ) . '</li>';
     761    $locations_overview .= '<li>' . __( 'To edit a menu currently assigned to a theme menu location, <strong>click the adjacent &#8217;Edit&#8217; link</strong>' ) . '</li>';
     762    $locations_overview .= '<li>' . __( 'To add a new menu instead of assigning an existing one, <strong>click the &#8217;Use new menu&#8217; link</strong>. Your new menu will be automatically assigned to that location in the theme.' ) . '</li></ul>';
    763763
    764764    get_current_screen()->add_help_tab(
     
    854854                <thead>
    855855                <tr>
    856                     <th scope="col" class="manage-column column-locations"><?php _e( 'Theme Location' ); ?></th>
     856                    <th scope="col" class="manage-column column-locations"><?php _e( 'Menu Location' ); ?></th>
    857857                    <th scope="col" class="manage-column column-menus"><?php _e( 'Assigned Menu' ); ?></th>
    858858                </tr>
     
    11981198
    11991199                                    <fieldset class="menu-settings-group menu-theme-locations">
    1200                                         <legend class="menu-settings-group-name howto"><?php _e( 'Display location' ); ?></legend>
     1200                                        <legend class="menu-settings-group-name howto"><?php _e( 'Menu location' ); ?></legend>
    12011201                                        <?php
    12021202                                        foreach ( $locations as $location => $description ) :
Note: See TracChangeset for help on using the changeset viewer.