Make WordPress Core

Ticket #27307: 27307.diff

File 27307.diff, 864 bytes (added by dingo_bastard, 8 years ago)

Removed unnecessary code

  • src/wp-admin/js/widgets.js

     
    5151                                widgetWidth = widget.parent().width();
    5252
    5353                                if ( inside.is(':hidden') ) {
    54                                         if ( targetWidth > 250 && ( targetWidth + 30 > widgetWidth ) && widget.closest('div.widgets-sortables').length ) {
    55                                                 if ( widget.closest('div.widget-liquid-right').length ) {
    56                                                         margin = isRTL ? 'margin-right' : 'margin-left';
    57                                                 } else {
    58                                                         margin = isRTL ? 'margin-left' : 'margin-right';
    59                                                 }
    60 
    61                                                 css[ margin ] = widgetWidth - ( targetWidth + 30 ) + 'px';
    62                                                 widget.css( css );
    63                                         }
    6454                                        /*
    6555                                         * Don't change the order of attributes changes and animation:
    6656                                         * it's important for screen readers, see ticket #31476.