Ampersand fixer should be called outside of the texturize loop.

git-svn-id: https://develop.svn.wordpress.org/trunk@174 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Matt Mullenweg 2003-06-06 21:19:30 +00:00
parent 876a64bc36
commit 9f4dc2e01b

View File

@ -53,7 +53,6 @@ function wptexturize($text) {
$curl = preg_replace("/\(r\)/i", '®', $curl);
$curl = str_replace("''", '”', $curl);
$curl = preg_replace('/&([^#])(?![a-z]{2,8};)/', '&$1', $curl);
$curl = preg_replace('/(d+)x(\d+)/', "$1×$2", $curl);
@ -82,6 +81,8 @@ function wpautop($pee, $br=1) {
$pee = preg_replace('!(</?(?:table|ul|ol|li|pre|select|form|blockquote|p)>)<br />!', "$1", $pee);
$pee = preg_replace('|<p><blockquote([^>]*)>|i', "<blockquote$1><p>", $pee);
$pee = str_replace('</blockquote></p>', '</p></blockquote>', $pee);
$pee = preg_replace('/&([^#])(?![a-z]{1,8};)/', '&#038;$1', $pee);
return $pee;
}