WordPress.org

Make WordPress Core


Ignore:
Timestamp:
01/21/2019 10:09:48 PM (7 months ago)
Author:
pento
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/script-loader.php

    r44651 r44680  
    17801780        );
    17811781
    1782         // Navigation Menus
    1783         $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' ) );
     1782        /*
     1783         * Navigation Menus: Adding underscore as a dependency to utilize _.debounce
     1784         * see https://core.trac.wordpress.org/ticket/42321
     1785         */
     1786        $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' ) );
    17841787        did_action( 'init' ) && $scripts->localize(
    17851788            'nav-menu',
Note: See TracChangeset for help on using the changeset viewer.