Make WordPress Core

Ticket #10366: 10366.2.diff

File 10366.2.diff, 532 bytes (added by caesarsgrunt, 15 years ago)

Fix for the issue, including wrongly expanding current section.

  • wp-admin/js/common.dev.js

     
    5050                        el.css('display','');
    5151                }).parent().toggleClass( 'wp-menu-open' );
    5252
    53                 $('.wp-has-submenu', '#adminmenu').each(function(i, e) {
     53                $('li.wp-has-submenu', '#adminmenu').not('.wp-has-current-submenu').each(function(i, e) {
    5454                        var v = $(e).hasClass('wp-menu-open') ? 'o' : 'c';
    5555                        setUserSetting( 'm'+i, v );
    5656                });