WordPress.org

Make WordPress Core


Ignore:
Timestamp:
09/03/2012 03:35:22 PM (8 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-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() )
Note: See TracChangeset for help on using the changeset viewer.