Make WordPress Core

Changeset 13402


Ignore:
Timestamp:
02/25/2010 05:10:00 PM (15 years ago)
Author:
wpmuguru
Message:

move nav menu css/js to nav-menu prefix, See #11817

Location:
trunk
Files:
2 edited
8 moved

Legend:

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

    r13400 r13402  
    1515    wp_die( __( 'Cheatin’ uh?' ));
    1616
    17 wp_admin_css( 'custom-navigation' );
     17wp_admin_css( 'nav-menu' );
    1818wp_enqueue_script( 'jquery' );
    1919wp_enqueue_script( 'jquery-ui-draggable' );
     
    2121wp_enqueue_script( 'jquery-ui-sortable' );
    2222wp_enqueue_script( 'jquery-ui-dialog' );
    23 wp_enqueue_script( 'custom-navigation-dynamic-functions' );
    24 wp_enqueue_script( 'custom-navigation-default-items' );
     23wp_enqueue_script( 'nav-menu-dynamic-functions' );
     24wp_enqueue_script( 'nav-menu-default-items' );
    2525wp_enqueue_script( 'jquery-autocomplete' );
    26 wp_enqueue_script( 'custom-navigation-php-functions' );
     26wp_enqueue_script( 'nav-menu-php-functions' );
    2727
    2828require_once( 'admin-header.php' );
  • trunk/wp-includes/script-loader.php

    r13395 r13402  
    398398
    399399        // Custom Navigation
    400         $scripts->add( 'custom-navigation-default-items', "/wp-admin/js/custom-navigation-default-items$suffix.js", false, '20100223' );
    401         $scripts->add( 'custom-navigation-dynamic-functions', "/wp-admin/js/custom-navigation-dynamic-functions$suffix.js", false, '20100224b' );
    402         $scripts->localize( 'custom-navigation-dynamic-functions', 'navMenuL10n', array(
     400        $scripts->add( 'nav-menu-default-items', "/wp-admin/js/nav-menu-default-items$suffix.js", false, '20100223' );
     401        $scripts->add( 'nav-menu-dynamic-functions', "/wp-admin/js/nav-menu-dynamic-functions$suffix.js", false, '20100224b' );
     402        $scripts->localize( 'nav-menu-dynamic-functions', 'navMenuL10n', array(
    403403            'custom' => _x('Custom', 'menu nav item type'),
    404404            'page' => _x('Page', 'menu nav item type'),
     
    406406        ) );
    407407       
    408         $scripts->add( 'custom-navigation-php-functions', "/wp-admin/js/custom-navigation-php-functions$suffix.js", false, '20100220' );
     408        $scripts->add( 'nav-menu-php-functions', "/wp-admin/js/nav-menu-php-functions$suffix.js", false, '20100220' );
    409409    }
    410410}
     
    475475    $styles->add( 'jcrop', '/wp-includes/js/jcrop/jquery.Jcrop.css', array(), '0.9.8' );
    476476    $styles->add( 'imgareaselect', '/wp-includes/js/imgareaselect/imgareaselect.css', array(), '0.9.1' );
    477     $styles->add( 'custom-navigation', "/wp-admin/css/custom-navigation$suffix.css", array(), '20100225' );
     477    $styles->add( 'nav-menu', "/wp-admin/css/nav-menu$suffix.css", array(), '20100225' );
    478478
    479479    foreach ( $rtl_styles as $rtl_style ) {
Note: See TracChangeset for help on using the changeset viewer.