WordPress.org

Make WordPress Core

Ticket #18382: 18382.fix-glitch.diff

File 18382.fix-glitch.diff, 519 bytes (added by duck_, 3 years ago)
  • wp-admin/js/common.dev.js

     
    2020 
    2121                this.flyout( $('#adminmenu li.wp-has-submenu') ); 
    2222 
    23                 this.fold( ! $('body').hasClass('folded') ); 
     23                // turn off flyouts on the active menu if not folded 
     24                if ( ! $('body').hasClass('folded') ) 
     25                        this.flyout( $('#adminmenu li.wp-has-current-submenu'), 1 ); 
    2426        }, 
    2527 
    2628        restoreMenuState : function() {