Ticket #21145: 21145.patch
| File 21145.patch, 864 bytes (added by SergeyBiryukov, 11 months ago) |
|---|
-
wp-includes/js/tinymce/plugins/wpeditimage/editor_plugin_src.js
142 142 var id, cls, w, cap, div_cls, img, trim = tinymce.trim; 143 143 144 144 id = b.match(/id=['"]([^'"]*)['"] ?/); 145 b = b.replace(id[0], ''); 145 if ( id ) 146 b = b.replace(id[0], ''); 146 147 147 148 cls = b.match(/align=['"]([^'"]*)['"] ?/); 148 b = b.replace(cls[0], ''); 149 if ( cls ) 150 b = b.replace(cls[0], ''); 149 151 150 152 w = b.match(/width=['"]([0-9]*)['"] ?/); 151 b = b.replace(w[0], ''); 153 if ( w ) 154 b = b.replace(w[0], ''); 152 155 153 156 c = trim(c); 154 157 img = c.match(/((?:<a [^>]+>)?<img [^>]+>(?:<\/a>)?)([\s\S]*)/i);
