The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

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

  1. seanriceaz
    Posted 5 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)


Topic Closed

This topic has been closed to new replies.

About this Topic