Make WordPress Core

Ticket #45079: 45079.diff

File 45079.diff, 560 bytes (added by xkon, 6 years ago)

Checks if "Clear inactive widgets" input is disabled - IE fix

  • js/_enqueues/admin/widgets.js

     
    192192                                toggleBtn.attr( 'aria-expanded', 'false' );
    193193                                wpWidgets.close( widget );
    194194                        } else if ( target.attr( 'id' ) === 'inactive-widgets-control-remove' ) {
    195                                 wpWidgets.removeInactiveWidgets();
     195                                if( ! $( target ).is( ':disabled' ) ) {
     196                                        wpWidgets.removeInactiveWidgets();
     197                                }
    196198                                e.preventDefault();
    197199                        }
    198200                });