WordPress.org

Make WordPress Core

Ticket #532: functions-formatting.diff

File functions-formatting.diff, 1.0 KB (added by coffee2code, 16 years ago)
  • wp-includes/functions-formatting.php

    RCS file: /cvsroot/cafelog/wordpress/wp-includes/functions-formatting.php,v
    retrieving revision 1.52
    diff -u -3 -r1.52 functions-formatting.php
     
    422422        $ret = ' ' . $ret . ' ';
    423423        $ret = preg_replace("#(\s)http://([^\s<>{}()]+[^\s.,<>{}()])#i", "$1<a href='http://$2'>http://$2</a>", $ret);
    424424        $ret = preg_replace("#(\s)www\.([a-z0-9\-]+)\.([a-z0-9\-.\~]+)((?:/[^ <>{}()\n\r]*[^., <>{}()\n\r]?)?)#i", "$1<a href='http://www.$2.$3$4'>www.$2.$3$4</a>", $ret);
    425         $ret = preg_replace("#(\s)([a-z0-9\-_.]+)@([^,< \n\r]+)#i", "$1<a href='mailto:$2@$3\">$2@$3</a>", $ret);
     425        $ret = preg_replace("#(\s)([a-z0-9\-_.]+)@([^,< \n\r]+)#i", "$1<a href=\"mailto:$2@$3\">$2@$3</a>", $ret);
    426426        $ret = trim($ret);
    427427        return $ret;
    428428}
     
    573573        return $since;
    574574}
    575575
    576 ?>
    577  No newline at end of file
     576?>