Skip to content

Commit

Permalink
3.7 regression: Fix the width of captioned images inserted into the v…
Browse files Browse the repository at this point in the history
…isual editor.

Pulls some arithmetic outside of some string concatenation to avoid a nasty uglify.js regression: mishoo/UglifyJS#330.

Merges [25921] to the 3.7 branch.

props LucP.
fixes #25700.

Built from https://develop.svn.wordpress.org/branches/3.7@25922


git-svn-id: http://core.svn.wordpress.org/branches/3.7@25881 1a063a9b-81f0-0310-95a4-ce76da25c4cd
  • Loading branch information
VenusPR committed Oct 26, 2013
1 parent c04bf89 commit abf43b2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,8 @@
if ( cls == 'aligncenter' )
div_cls += ' mceIEcenter';

return '<div class="'+div_cls+'"><dl id="'+id+'" class="wp-caption '+cls+'" style="width: '+( 10 + parseInt(w) )+
w = parseInt( w, 10 ) + 10;
return '<div class="'+div_cls+'"><dl id="'+id+'" class="wp-caption '+cls+'" style="width: '+w+
'px"><dt class="wp-caption-dt">'+img+'</dt><dd class="wp-caption-dd">'+cap+'</dd></dl></div>';
});
},
Expand Down
Binary file modified wp-includes/js/tinymce/wp-tinymce.js.gz
Binary file not shown.

0 comments on commit abf43b2

Please sign in to comment.