diff --git a/wp-includes/functions-formatting.php b/wp-includes/functions-formatting.php index 87c324012..a9bb50ef8 100644 --- a/wp-includes/functions-formatting.php +++ b/wp-includes/functions-formatting.php @@ -24,8 +24,8 @@ function wptexturize($text) { $curl = preg_replace("/'s/", '’s', $curl); $curl = preg_replace("/'(\d\d(?:’|')?s)/", "’$1", $curl); $curl = preg_replace('/(\s|\A|")\'/', '$1‘', $curl); - $curl = preg_replace('/(\d+)"/', '$1″', $curl); - $curl = preg_replace("/(\d+)'/", '$1′', $curl); + $curl = preg_replace('/(\d+)"/', '$1″', $curl); + $curl = preg_replace("/(\d+)'/", '$1′', $curl); $curl = preg_replace("/(\S)'([^'\s])/", "$1’$2", $curl); $curl = preg_replace('/(\s|\A)"(?!\s)/', '$1“$2', $curl); $curl = preg_replace('/"(\s|\Z)/', '”$1', $curl);