Changeset 36376
- Timestamp:
- 01/22/2016 01:18:30 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/js/tinymce/plugins/wpeditimage/plugin.js
r36352 r36376 354 354 var classes, className, node, html, parent, wrap, linkNode, 355 355 captionNode, dd, dl, id, attrs, linkAttrs, width, height, align, 356 $imageNode, srcset, src, 356 357 dom = editor.dom; 357 358 … … 487 488 parent.appendChild( node ); 488 489 dom.remove( captionNode ); 490 } 491 492 $imageNode = editor.$( imageNode ); 493 srcset = $imageNode.attr( 'srcset' ); 494 src = $imageNode.attr( 'src' ); 495 496 // Remove srcset and sizes if the image file was edited or the image was replaced. 497 if ( srcset && src ) { 498 src = src.replace( /[?#].*/, '' ); 499 500 if ( srcset.indexOf( src ) === -1 ) { 501 $imageNode.attr( 'srcset', null ).attr( 'sizes', null ); 502 } 489 503 } 490 504
Note: See TracChangeset
for help on using the changeset viewer.