diff --git a/src/js/_enqueues/vendor/tinymce/plugins/wpeditimage/plugin.js b/src/js/_enqueues/vendor/tinymce/plugins/wpeditimage/plugin.js
index 0f0a5daf45..2c9b42ad17 100644
a
|
b
|
tinymce.PluginManager.add( 'wpeditimage', function( editor ) { |
221 | 221 | // convert remaining line breaks to <br> |
222 | 222 | caption = caption.replace( /\s*\n\s*/g, '<br />' ); |
223 | 223 | |
| 224 | // Convert escaped shortcode brackets to html entities. |
| 225 | caption = caption.replace( /\[{1,}/g, '[' ).replace( /\]{1,}/g, ']' ); |
| 226 | |
224 | 227 | return '[caption id="' + id + '" align="' + align + '" width="' + width + '"' + classes + ']' + c + ' ' + caption + '[/caption]'; |
225 | 228 | }); |