Make WordPress Core

Ticket #38138: 38138.diff

File 38138.diff, 589 bytes (added by adamsilverstein, 8 years ago)
  • src/wp-admin/js/image-edit.js

     
    573573        imgLoaded : function(postid) {
    574574                var img = $('#image-preview-' + postid), parent = $('#imgedit-crop-' + postid);
    575575
     576                // Ensure init has run even when directly loaded.
     577                if ( 'undefined' === typeof this.hold.sizer ) {
     578                        this.init( postid );
     579                }
     580
    576581                this.initCrop(postid, img, parent);
    577582                this.setCropSelection(postid, 0);
    578583                this.toggleEditor(postid, 0);