Texturize tweak.
git-svn-id: http://svn.automattic.com/wordpress/trunk@875 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
b3574c0daf
commit
a8d831a286
|
@ -6,10 +6,7 @@ function wptexturize($text) {
|
||||||
$stop = count($textarr); $next = true; // loop stuff
|
$stop = count($textarr); $next = true; // loop stuff
|
||||||
for ($i = 0; $i < $stop; $i++) {
|
for ($i = 0; $i < $stop; $i++) {
|
||||||
$curl = $textarr[$i];
|
$curl = $textarr[$i];
|
||||||
if (!strstr($_SERVER['HTTP_USER_AGENT'], 'Gecko')) {
|
|
||||||
$curl = str_replace('<q>', '“', $curl);
|
|
||||||
$curl = str_replace('</q>', '”', $curl);
|
|
||||||
}
|
|
||||||
if (isset($curl{0}) && '<' != $curl{0} && $next) { // If it's not a tag
|
if (isset($curl{0}) && '<' != $curl{0} && $next) { // If it's not a tag
|
||||||
$curl = str_replace('---', '—', $curl);
|
$curl = str_replace('---', '—', $curl);
|
||||||
$curl = str_replace('--', '–', $curl);
|
$curl = str_replace('--', '–', $curl);
|
||||||
|
|
Loading…
Reference in New Issue