From 50dc640746ca3651b4caea7d1e76bcd237d95eff Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Tue, 9 Nov 2010 00:42:35 +0000 Subject: [PATCH] Use spaces for alignment. see #15343 [16236] git-svn-id: https://develop.svn.wordpress.org/trunk@16245 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/includes/media.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/wp-admin/includes/media.php b/wp-admin/includes/media.php index ad1728b732..2ed0ef645b 100644 --- a/wp-admin/includes/media.php +++ b/wp-admin/includes/media.php @@ -140,11 +140,11 @@ function image_add_caption( $html, $id, $caption, $title, $align, $url, $size, $ $width = $matches[1]; - $caption = str_replace( array( '>', '<', '"', "'" ), - array( '>', '<', '"', ''' ), + $caption = str_replace( array( '>', '<', '"', "'" ), + array( '>', '<', '"', ''' ), $caption ); - + $html = preg_replace( '/(class=["\'][^\'"]*)align(none|left|right|center)\s?/', '$1', $html ); if ( empty($align) ) $align = 'none';