Ticket #45493: 45493.3.diff
File 45493.3.diff, 722 bytes (added by , 2 years ago) |
---|
-
src/js/_enqueues/vendor/tinymce/plugins/wpeditimage/plugin.js
221 221 // Convert remaining line breaks to <br>. 222 222 caption = caption.replace( /\s*\n\s*/g, '<br />' ); 223 223 224 // Convert square brackets to HTML entities in the shortcode. 225 caption = caption.replace( /\[/g, '[' ).replace( /\]/g, ']' ); 226 224 227 return '[caption id="' + id + '" align="' + align + '" width="' + width + '"' + classes + ']' + c + ' ' + caption + '[/caption]'; 225 228 }); 226 229