mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-22 14:35:07 +00:00
Texturize tweaks
git-svn-id: http://svn.automattic.com/wordpress/trunk@2578 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
406027014e
commit
48d0ec3c43
@ -10,8 +10,9 @@ function wptexturize($text) {
|
||||
|
||||
if (isset($curl{0}) && '<' != $curl{0} && $next) { // If it's not a tag
|
||||
$curl = str_replace('---', '—', $curl);
|
||||
$curl = preg_replace('/(\s)--(\s)/', '$1—$2', $curl);
|
||||
$curl = str_replace(' -- ', ' — ', $curl);
|
||||
$curl = str_replace('--', '–', $curl);
|
||||
$curl = str_replace('xn–', 'xn--', $curl);
|
||||
$curl = str_replace('...', '…', $curl);
|
||||
$curl = str_replace('``', '“', $curl);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user