Support » Requests and Feedback » [fix] l10n script breaking nav-menu.php in the admin

  • Resolved seanriceaz


    Hi there!
    I was getting javascript errors on nav-menus.php in the wordpress admin (on 3.2.1).
    This made it so I could not rearrange menus, which was a total drag.

    Anyway, I discovered a fix, and its easy (actually WP DEVS–if you haven’t done so already, you should do this, and roll it in to the next release)

    Open [site root]/wp-includes/script-loader.php
    change line 62 to this:
    $scripts->add( 'l10n', "/wp-includes/js/l10n$suffix.js", array('jquery'), false, '20101110' );

    Basically, we’re adding the jQuery dependency to l10n script, so that jquery loads before it, fixing the problem.

    (it seems the l10n javascript now depends on jquery for something… maybe it didn’t originally and nobody ever updated the reference to it)


  • The topic ‘[fix] l10n script breaking nav-menu.php in the admin’ is closed to new replies.