mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-04 12:44:31 +00:00
Texturize tweaks
git-svn-id: https://develop.svn.wordpress.org/trunk@2578 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user