diff --git src/wp-includes/js/tinymce/plugins/wpeditimage/plugin.js src/wp-includes/js/tinymce/plugins/wpeditimage/plugin.js
index f3e66e6..8db5d37 100644
|
|
tinymce.PluginManager.add( 'wpeditimage', function( editor ) { |
498 | 498 | var parent, |
499 | 499 | node = event.target; |
500 | 500 | |
501 | | if ( node.nodeName === 'IMG' && ( parent = editor.dom.getParent( node, '.wp-caption' ) ) ) { |
| 501 | if ( node.nodeName === 'IMG' && ( parent = editor.dom.getParent( node, '.wp-caption' ) && event.width > 0 ) ) { |
502 | 502 | editor.dom.setStyle( parent, 'width', 10 + event.width + 'px' ); |
503 | 503 | } |
504 | 504 | }); |