WordPress.org

Make WordPress Core

Changeset 21696


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

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

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/nav-menus.php

    r20433 r21696  
    2323    wp_die( __( 'Cheatin’ uh?' ) );
    2424
    25 // jQuery
    26 wp_enqueue_script( 'jquery-ui-draggable' );
    27 wp_enqueue_script( 'jquery-ui-droppable' );
    28 wp_enqueue_script( 'jquery-ui-sortable' );
    29 
    30 // Nav Menu functions
    3125wp_enqueue_script( 'nav-menu' );
    32 
    33 // Metaboxes
    34 wp_enqueue_script( 'common' );
    35 wp_enqueue_script( 'wp-lists' );
    36 wp_enqueue_script( 'postbox' );
    3726
    3827if ( wp_is_mobile() )
  • 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.