Use spaces for alignment. see #15343 [16236]

git-svn-id: http://svn.automattic.com/wordpress/trunk@16245 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
nacin 2010-11-09 00:42:35 +00:00
parent 266a71eb7d
commit fa3c017451
1 changed files with 3 additions and 3 deletions

View File

@ -140,11 +140,11 @@ function image_add_caption( $html, $id, $caption, $title, $align, $url, $size, $
$width = $matches[1];
$caption = str_replace( array( '>', '<', '"', "'" ),
array( '&gt;', '&lt;', '&quot;', '&#039;' ),
$caption = str_replace( array( '>', '<', '"', "'" ),
array( '&gt;', '&lt;', '&quot;', '&#039;' ),
$caption
);
$html = preg_replace( '/(class=["\'][^\'"]*)align(none|left|right|center)\s?/', '$1', $html );
if ( empty($align) )
$align = 'none';