mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-03 04:04:35 +00:00
Menus: Remove error styling when the user addresses the error.
An error is triggered if a Menu Name isn't given when the user attempts to create a menu. When they go back and add a name, the error styling can be removed. Props ashokrd2013, piyush9100, welcher, afercia. Fixes #42321. git-svn-id: https://develop.svn.wordpress.org/trunk@44680 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -1779,8 +1779,11 @@ function wp_default_scripts( &$scripts ) {
|
||||
)
|
||||
);
|
||||
|
||||
// Navigation Menus
|
||||
$scripts->add( 'nav-menu', "/wp-admin/js/nav-menu$suffix.js", array( 'jquery-ui-sortable', 'jquery-ui-draggable', 'jquery-ui-droppable', 'wp-lists', 'postbox', 'json2' ) );
|
||||
/*
|
||||
* Navigation Menus: Adding underscore as a dependency to utilize _.debounce
|
||||
* see https://core.trac.wordpress.org/ticket/42321
|
||||
*/
|
||||
$scripts->add( 'nav-menu', "/wp-admin/js/nav-menu$suffix.js", array( 'jquery-ui-sortable', 'jquery-ui-draggable', 'jquery-ui-droppable', 'wp-lists', 'postbox', 'json2', 'underscore' ) );
|
||||
did_action( 'init' ) && $scripts->localize(
|
||||
'nav-menu',
|
||||
'navMenuL10n',
|
||||
|
||||
Reference in New Issue
Block a user