Changes between Initial Version and Version 1 of Ticket #34823, comment 6
- Timestamp:
- 09/05/2016 09:02:59 PM (8 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #34823, comment 6
initial v1 21 21 22 22 {{{ 23 wp.media.events.on( 'editor:image-update', function( data ) { 24 data.editor.$( data.image ).attr( { 'width': null, 'height': null } ); 25 } ); 23 if ( wp.media.events ) { 24 wp.media.events.on( 'editor:image-update', function( data ) { 25 data.editor.$( data.image ).attr( { 'width': null, 'height': null } ); 26 } ); 27 } 26 28 }}} 27 29