Make WordPress Core

Changeset 25921 for trunk/src


Ignore:
Timestamp:
10/26/2013 02:50:02 AM (11 years ago)
Author:
nacin
Message:

3.7 regression: Fix the width of captioned images inserted into the visual editor.

Pulls some arithmetic outside of some string concatenation to avoid a nasty uglify.js regression: https://github.com/mishoo/UglifyJS2/pull/330.

props LucP.
fixes #25700 for trunk.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/js/tinymce/plugins/wpeditimage/editor_plugin_src.js

    r22857 r25921  
    161161                    div_cls += ' mceIEcenter';
    162162
    163                 return '<div class="'+div_cls+'"><dl id="'+id+'" class="wp-caption '+cls+'" style="width: '+( 10 + parseInt(w) )+
     163                w = parseInt( w, 10 ) + 10;
     164                return '<div class="'+div_cls+'"><dl id="'+id+'" class="wp-caption '+cls+'" style="width: '+w+
    164165                'px"><dt class="wp-caption-dt">'+img+'</dt><dd class="wp-caption-dd">'+cap+'</dd></dl></div>';
    165166            });
Note: See TracChangeset for help on using the changeset viewer.