mirror of
https://github.com/WordPress/WordPress.git
synced 2024-09-27 14:53:08 +02:00
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:
parent
266a71eb7d
commit
fa3c017451
@ -140,11 +140,11 @@ function image_add_caption( $html, $id, $caption, $title, $align, $url, $size, $
|
|||||||
|
|
||||||
$width = $matches[1];
|
$width = $matches[1];
|
||||||
|
|
||||||
$caption = str_replace( array( '>', '<', '"', "'" ),
|
$caption = str_replace( array( '>', '<', '"', "'" ),
|
||||||
array( '>', '<', '"', ''' ),
|
array( '>', '<', '"', ''' ),
|
||||||
$caption
|
$caption
|
||||||
);
|
);
|
||||||
|
|
||||||
$html = preg_replace( '/(class=["\'][^\'"]*)align(none|left|right|center)\s?/', '$1', $html );
|
$html = preg_replace( '/(class=["\'][^\'"]*)align(none|left|right|center)\s?/', '$1', $html );
|
||||||
if ( empty($align) )
|
if ( empty($align) )
|
||||||
$align = 'none';
|
$align = 'none';
|
||||||
|
Loading…
Reference in New Issue
Block a user