WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] [fix] l10n script breaking nav-menu.php in the admin (1 post)

  1. seanriceaz
    Member
    Posted 3 years ago #

    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)

    Cheers!

Topic Closed

This topic has been closed to new replies.

About this Topic