Changeset 37042
- Timestamp:
- 03/22/2016 03:54:58 AM (9 years ago)
- Location:
- trunk/src/wp-includes/js
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/js/media-views.js
r36866 r37042 403 403 control = this.get( 'control' ); 404 404 405 cropDetails.dst_width = control.params.width; 406 cropDetails.dst_height = control.params.height; 405 if ( ! control.params.flex_width ) { 406 cropDetails.dst_width = control.params.width; 407 } 408 if ( ! control.params.flex_height ) { 409 cropDetails.dst_height = control.params.height; 410 } 407 411 408 412 return wp.ajax.post( 'crop-image', { -
trunk/src/wp-includes/js/media/controllers/customize-image-cropper.js
r33337 r37042 17 17 control = this.get( 'control' ); 18 18 19 cropDetails.dst_width = control.params.width; 20 cropDetails.dst_height = control.params.height; 19 if ( ! control.params.flex_width ) { 20 cropDetails.dst_width = control.params.width; 21 } 22 if ( ! control.params.flex_height ) { 23 cropDetails.dst_height = control.params.height; 24 } 21 25 22 26 return wp.ajax.post( 'crop-image', {
Note: See TracChangeset
for help on using the changeset viewer.