WordPress.org

Make WordPress Core

Changeset 13730


Ignore:
Timestamp:
03/17/2010 04:13:16 PM (10 years ago)
Author:
markjaquith
Message:

No need for three separate JS files if they are only ever enqueued together. see #11817

Location:
trunk
Files:
2 added
6 deleted
2 edited

Legend:

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

    r13723 r13730  
    2828
    2929// Nav Menu functions
    30 wp_enqueue_script( 'nav-menu-dynamic-functions' );
    31 wp_enqueue_script( 'nav-menu-default-items' );
    32 wp_enqueue_script( 'nav-menu-php-functions' );
     30wp_enqueue_script( 'nav-menu' );
    3331
    3432// Metaboxes
  • trunk/wp-includes/script-loader.php

    r13725 r13730  
    398398
    399399        // Custom Navigation
    400         $scripts->add( 'nav-menu-default-items', "/wp-admin/js/nav-menu-default-items$suffix.js", false, '20100315' );
    401         $scripts->add( 'nav-menu-dynamic-functions', "/wp-admin/js/nav-menu-dynamic-functions$suffix.js", false, '20100315' );
    402         $scripts->localize( 'nav-menu-dynamic-functions', 'navMenuL10n', array(
     400        $scripts->add( 'nav-menu', "/wp-admin/js/nav-menu$suffix.js", false, '20100315' );
     401        $scripts->localize( 'nav-menu', 'navMenuL10n', array(
    403402            'custom' => _x('Custom', 'menu nav item type'),
    404403            'page' => _x('Page', 'menu nav item type'),
     
    408407            'warnDelete' => __( "You are about to permanently delete this menu. \n 'Cancel' to stop, 'OK' to delete." ),
    409408        ) );
    410        
    411         $scripts->add( 'nav-menu-php-functions', "/wp-admin/js/nav-menu-php-functions$suffix.js", false, '20100220' );
    412409    }
    413410}
Note: See TracChangeset for help on using the changeset viewer.