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;
|
||||
|
||||
Reference in New Issue
Block a user