Make WordPress Core


Ignore:
Timestamp:
09/03/2012 03:35:22 PM (12 years ago)
Author:
nacin
Message:

Replace multiple wp_enqueue_script() calls in nav-menus.php with dependencies. props SergeyBiryukov. fixes #21777.

File:
1 edited

Legend:

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

    r21695 r21696  
    435435
    436436        // Navigation Menus
    437         $scripts->add( 'nav-menu', "/wp-admin/js/nav-menu$suffix.js", array('jquery-ui-sortable') );
     437        $scripts->add( 'nav-menu', "/wp-admin/js/nav-menu$suffix.js", array( 'jquery-ui-sortable', 'jquery-ui-draggable', 'jquery-ui-droppable', 'wp-lists', 'postbox' ) );
    438438        did_action( 'init' ) && $scripts->localize( 'nav-menu', 'navMenuL10n', array(
    439439            'noResultsFound' => _x('No results found.', 'search results'),
Note: See TracChangeset for help on using the changeset viewer.