Skip to content

Commit 9004673

Browse files
committed
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. git-svn-id: https://develop.svn.wordpress.org/trunk@61648 602fd350-edb4-49c9-b593-d223f7449a82
1 parent a5d73c3 commit 9004673

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

src/wp-admin/nav-menus.php

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -556,7 +556,7 @@
556556
$page_count = wp_count_posts( 'page' );
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
*/
562562
if ( 1 === count( get_registered_nav_menus() ) && ! $add_new_screen
@@ -603,8 +603,8 @@
603603
wp_localize_script( 'nav-menu', 'menus', $nav_menus_l10n );
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
*/
609609
if ( 0 === $menu_count && ! $add_new_screen && ! $one_theme_location_no_menus ) {
610610
wp_redirect( admin_url( 'nav-menus.php?action=edit&menu=0' ) );
@@ -731,7 +731,7 @@ function wp_nav_menu_max_depth( $classes ) {
731731
$menu_management = '<p>' . __( 'The menu management box at the top of the screen is used to control which menu is opened in the editor below.' ) . '</p>';
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(
737737
array(
@@ -757,9 +757,9 @@ function wp_nav_menu_max_depth( $classes ) {
757757
);
758758
else : // 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(
765765
array(
@@ -853,7 +853,7 @@ function wp_nav_menu_max_depth( $classes ) {
853853
<table class="widefat fixed" id="menu-locations-table">
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>
859859
</thead>
@@ -1197,7 +1197,7 @@ function wp_nav_menu_max_depth( $classes ) {
11971197
<?php if ( current_theme_supports( 'menus' ) ) : ?>
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 ) :
12031203
$checked = false;

0 commit comments

Comments
 (0)