Widgets: Rename "Custom Menu" widget to "Navigation Menu".
Props gk.loveweb, ChrisHardie, ajayghaghretiya1, melchoyce. Fixes #40442. Built from https://develop.svn.wordpress.org/trunk@41868 git-svn-id: http://core.svn.wordpress.org/trunk@41702 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -2459,7 +2459,7 @@
|
||||
this._setupAddition();
|
||||
this._setupTitle();
|
||||
|
||||
// Add menu to Custom Menu widgets.
|
||||
// Add menu to Navigation Menu widgets.
|
||||
if ( menu ) {
|
||||
name = displayNavMenuName( menu.name );
|
||||
|
||||
@@ -2509,7 +2509,7 @@
|
||||
if ( false === to ) {
|
||||
control._handleDeletion();
|
||||
} else {
|
||||
// Update names in the Custom Menu widgets.
|
||||
// Update names in the Navigation Menu widgets.
|
||||
name = displayNavMenuName( to.name );
|
||||
api.control.each( function( widgetControl ) {
|
||||
if ( ! widgetControl.extended( api.controlConstructor.widget_form ) || 'nav_menu' !== widgetControl.params.widget_id_base ) {
|
||||
@@ -2651,7 +2651,7 @@
|
||||
}
|
||||
});
|
||||
|
||||
// Remove the menu from any Custom Menu widgets.
|
||||
// Remove the menu from any Navigation Menu widgets.
|
||||
api.control.each(function( widgetControl ) {
|
||||
if ( ! widgetControl.extended( api.controlConstructor.widget_form ) || 'nav_menu' !== widgetControl.params.widget_id_base ) {
|
||||
return;
|
||||
@@ -3063,7 +3063,7 @@
|
||||
// Add new control for the new menu.
|
||||
api.section.add( newSection );
|
||||
|
||||
// Update the values for nav menus in Custom Menu controls.
|
||||
// Update the values for nav menus in Navigation Menu controls.
|
||||
api.control.each( function( setting ) {
|
||||
if ( ! setting.extended( api.controlConstructor.widget_form ) || 'nav_menu' !== setting.params.widget_id_base ) {
|
||||
return;
|
||||
|
||||
@@ -514,12 +514,12 @@ wp_nav_menu_setup();
|
||||
wp_initial_nav_menu_meta_boxes();
|
||||
|
||||
if ( ! current_theme_supports( 'menus' ) && ! $num_locations )
|
||||
$messages[] = '<div id="message" class="updated"><p>' . sprintf( __( 'Your theme does not natively support menus, but you can use them in sidebars by adding a “Custom Menu” widget on the <a href="%s">Widgets</a> screen.' ), admin_url( 'widgets.php' ) ) . '</p></div>';
|
||||
$messages[] = '<div id="message" class="updated"><p>' . sprintf( __( 'Your theme does not natively support menus, but you can use them in sidebars by adding a “Navigation Menu” widget on the <a href="%s">Widgets</a> screen.' ), admin_url( 'widgets.php' ) ) . '</p></div>';
|
||||
|
||||
if ( ! $locations_screen ) : // Main tab
|
||||
$overview = '<p>' . __( 'This screen is used for managing your custom navigation menus.' ) . '</p>';
|
||||
$overview = '<p>' . __( 'This screen is used for managing your navigation menus.' ) . '</p>';
|
||||
/* translators: 1: Widgets admin screen URL, 2 and 3: The name of the default themes */
|
||||
$overview .= '<p>' . sprintf( __( 'Menus can be displayed in locations defined by your theme, even used in sidebars by adding a “Custom Menu” widget on the <a href="%1$s">Widgets</a> screen. If your theme does not support the custom menus feature (the default themes, %2$s and %3$s, do), you can learn about adding this support by following the Documentation link to the side.' ), admin_url( 'widgets.php' ), 'Twenty Sixteen', 'Twenty Seventeen' ) . '</p>';
|
||||
$overview .= '<p>' . sprintf( __( 'Menus can be displayed in locations defined by your theme, even used in sidebars by adding a “Navigation Menu” widget on the <a href="%1$s">Widgets</a> screen. If your theme does not support the navigation menus feature (the default themes, %2$s and %3$s, do), you can learn about adding this support by following the Documentation link to the side.' ), admin_url( 'widgets.php' ), 'Twenty Sixteen', 'Twenty Seventeen' ) . '</p>';
|
||||
$overview .= '<p>' . __( 'From this screen you can:' ) . '</p>';
|
||||
$overview .= '<ul><li>' . __( 'Create, edit, and delete menus' ) . '</li>';
|
||||
$overview .= '<li>' . __( 'Add, organize, and modify individual menu items' ) . '</li></ul>';
|
||||
@@ -541,7 +541,7 @@ if ( ! $locations_screen ) : // Main tab
|
||||
'content' => $menu_management
|
||||
) );
|
||||
|
||||
$editing_menus = '<p>' . __( 'Each custom menu may contain a mix of links to pages, categories, custom URLs or other content types. Menu links are added by selecting items from the expanding boxes in the left-hand column below.' ) . '</p>';
|
||||
$editing_menus = '<p>' . __( 'Each navigation menu may contain a mix of links to pages, categories, custom URLs or other content types. Menu links are added by selecting items from the expanding boxes in the left-hand column below.' ) . '</p>';
|
||||
$editing_menus .= '<p>' . __( '<strong>Clicking the arrow to the right of any menu item</strong> in the editor will reveal a standard group of settings. Additional settings such as link target, CSS classes, link relationships, and link descriptions can be enabled and disabled via the Screen Options tab.' ) . '</p>';
|
||||
$editing_menus .= '<ul><li>' . __( 'Add one or several items at once by <strong>selecting the checkbox next to each item and clicking Add to Menu</strong>' ) . '</li>';
|
||||
$editing_menus .= '<li>' . __( 'To add a custom link, <strong>expand the Custom Links section, enter a URL and link text, and click Add to Menu</strong>' ) .'</li>';
|
||||
|
||||
Reference in New Issue
Block a user