WordPress.org

Make WordPress Core

Changeset 13804


Ignore:
Timestamp:
03/22/2010 10:33:12 PM (10 years ago)
Author:
nacin
Message:

Prevent the nav menu walker from walking in circles. Don't allow an object from being a child of itself; if the functionality is desired, a workaround would be custom links. see #11817, see #12566. (Script loader bump for r13802, r13803). props ptahdunbar for the commits.

File:
1 edited

Legend:

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

    r13802 r13804  
    398398
    399399        // Custom Navigation
    400         $scripts->add( 'nav-menu', "/wp-admin/js/nav-menu$suffix.js", false, '20100322' );
     400        $scripts->add( 'nav-menu', "/wp-admin/js/nav-menu$suffix.js", false, '20100322b' );
    401401        $scripts->localize( 'nav-menu', 'navMenuL10n', array(
    402402            'custom' => _x('Custom', 'menu nav item type'),
     
    477477    $styles->add( 'jcrop', '/wp-includes/js/jcrop/jquery.Jcrop.css', array(), '0.9.8' );
    478478    $styles->add( 'imgareaselect', '/wp-includes/js/imgareaselect/imgareaselect.css', array(), '0.9.1' );
    479     $styles->add( 'nav-menu', "/wp-admin/css/nav-menu$suffix.css", array(), '20100301' );
     479    $styles->add( 'nav-menu', "/wp-admin/css/nav-menu$suffix.css", array(), '20100322' );
    480480
    481481    foreach ( $rtl_styles as $rtl_style ) {
Note: See TracChangeset for help on using the changeset viewer.