Make WordPress Core

Ticket #34851: media-views.diff

File media-views.diff, 592 bytes (added by coreymckrill4ttf, 9 years ago)
  • src/wp-includes/js/media-views.js

     
    396396                var cropDetails = attachment.get( 'cropDetails' ),
    397397                        control = this.get( 'control' );
    398398
    399                 cropDetails.dst_width  = control.params.width;
    400                 cropDetails.dst_height = control.params.height;
     399                cropDetails.dst_width  = cropDetails.width;
     400                cropDetails.dst_height = cropDetails.height;
    401401
    402402                return wp.ajax.post( 'crop-image', {
    403403                        wp_customize: 'on',