WordPress.org

Make WordPress Core

Ticket #10366: 10366.diff

File 10366.diff, 552 bytes (added by westi, 8 years ago)

Fix for the issue. Sync the two selectors for jQuery

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

    ### Eclipse Workspace Patch 1.0
    #P wordpress-trunk
     
    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').each(function(i, e) {
    5454                        var v = $(e).hasClass('wp-menu-open') ? 'o' : 'c';
    5555                        setUserSetting( 'm'+i, v );
    5656                });