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:
parent
876a64bc36
commit
9f4dc2e01b
@ -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};)/', '&$1', $pee);
|
||||
|
||||
return $pee;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user