Changeset 30406
- Timestamp:
- 11/20/2014 10:59:54 AM (10 years ago)
- Location:
- branches/4.0
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/4.0
-
branches/4.0/src/wp-includes/js/tinymce/plugins/wpeditimage/plugin.js
r29541 r30406 83 83 } 84 84 85 out = b.replace( / <dl ([^>]+)>\s*<dt [^>]+>([\s\S]+?)<\/dt>\s*<dd [^>]+>([\s\S]*?)<\/dd>\s*<\/dl>/gi, function( a, b, c, caption ) {85 out = b.replace( /\s*<dl ([^>]+)>\s*<dt [^>]+>([\s\S]+?)<\/dt>\s*<dd [^>]+>([\s\S]*?)<\/dd>\s*<\/dl>\s*/gi, function( a, b, c, caption ) { 86 86 var id, classes, align, width; 87 87 … … 117 117 }); 118 118 119 if ( out.indexOf('[caption') !== 0) {119 if ( out.indexOf('[caption') === -1 ) { 120 120 // the caption html seems broken, try to find the image that may be wrapped in a link 121 121 // and may be followed by <p> with the caption text.
Note: See TracChangeset
for help on using the changeset viewer.