Pluck a tab (whitespace), props SergeyBiryukov, see #20369
git-svn-id: http://svn.automattic.com/wordpress/trunk@20377 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
2441cb0cae
commit
f06fb15878
|
@ -171,7 +171,7 @@ function _cleanup_image_add_caption($str) {
|
||||||
$s = preg_replace( '/[\r\n\t]+/', ' ', $str[0] );
|
$s = preg_replace( '/[\r\n\t]+/', ' ', $str[0] );
|
||||||
// look for single quotes inside html attributes (for example in title)
|
// look for single quotes inside html attributes (for example in title)
|
||||||
$s = preg_replace_callback( '/="[^"]+"/', '_cleanup_image_add_caption2', $s );
|
$s = preg_replace_callback( '/="[^"]+"/', '_cleanup_image_add_caption2', $s );
|
||||||
return str_replace( '"', "'", $s );
|
return str_replace( '"', "'", $s );
|
||||||
}
|
}
|
||||||
|
|
||||||
return '';
|
return '';
|
||||||
|
|
Loading…
Reference in New Issue