Make WordPress Core

Ticket #39859: patch.diff

File patch.diff, 431 bytes (added by andreiglingeanu, 8 years ago)
  • src/wp-includes/js/media/views/modal.js

     
    123123                        }
    124124                }
    125125
     126                var initialX = window.scrollX, initialY = window.scrollY;
    126127                this.$el.focus();
     128                window.scrollTo(initialX, initialY);
    127129
    128130                return this.propagate('open');
    129131        },