Ticket #61428: 61428.patch
| File 61428.patch, 1.1 KB (added by , 18 months ago) |
|---|
-
src/js/_enqueues/lib/image-edit.js
688 688 } ).done( function( response ) { 689 689 // Whether the executed action was `scale` or `restore`, the response does have a message. 690 690 if ( response && response.data.message.msg ) { 691 if( 'restore' === action && response.data.message.orig_size) { 692 // Reset the original sizes for this object on restore 693 t.hold.ow = response.data.message.orig_size.width; 694 t.hold.oh = response.data.message.orig_size.height; 695 } 691 696 wp.a11y.speak( response.data.message.msg ); 692 697 return; 693 698 } -
src/wp-admin/includes/image-edit.php
880 880 } 881 881 } 882 882 883 $msg->orig_size = array( 884 'width' => $meta['width'], 885 'height' => $meta['height'], 886 ); 887 883 888 return $msg; 884 889 } 885 890