git-svn-id: http://svn.automattic.com/wordpress/trunk@1409 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
7ff35cf184
commit
dce17fa6d6
|
@ -24,8 +24,8 @@ function wptexturize($text) {
|
||||||
$curl = preg_replace("/'s/", '’s', $curl);
|
$curl = preg_replace("/'s/", '’s', $curl);
|
||||||
$curl = preg_replace("/'(\d\d(?:’|')?s)/", "’$1", $curl);
|
$curl = preg_replace("/'(\d\d(?:’|')?s)/", "’$1", $curl);
|
||||||
$curl = preg_replace('/(\s|\A|")\'/', '$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)'([^'\s])/", "$1’$2", $curl);
|
||||||
$curl = preg_replace('/(\s|\A)"(?!\s)/', '$1“$2', $curl);
|
$curl = preg_replace('/(\s|\A)"(?!\s)/', '$1“$2', $curl);
|
||||||
$curl = preg_replace('/"(\s|\Z)/', '”$1', $curl);
|
$curl = preg_replace('/"(\s|\Z)/', '”$1', $curl);
|
||||||
|
|
Loading…
Reference in New Issue