RCS file: /cvsroot/cafelog/wordpress/wp-includes/comment-functions.php,v
retrieving revision 1.29
diff -u -r1.29 comment-functions.php
|
|
|
|
| 170 | 170 | if ( empty( $url ) ) |
| 171 | 171 | $return = $author; |
| 172 | 172 | else |
| 173 | | $return = "<a href='$url' rel='external nofollow'>$author</a>"; |
| | 173 | $return = "<a href='$url' rel='external'>$author</a>"; |
| 174 | 174 | return apply_filters('get_comment_author_link', $return); |
| 175 | 175 | } |
| 176 | 176 | |
RCS file: /cvsroot/cafelog/wordpress/wp-includes/default-filters.php,v
retrieving revision 1.1
diff -u -r1.1 default-filters.php
|
|
|
|
| 34 | 35 | add_filter('pre_comment_author_email', 'wp_filter_kses'); |
| 35 | 36 | add_filter('pre_comment_author_url', 'wp_filter_kses'); |
| 36 | 37 | |
| | 38 | add_filter('get_comment_author_link', 'wp_rel_nofollow', 15); |
| | 39 | |
| 37 | 40 | // Default filters for these functions |
| 38 | 41 | add_filter('comment_author', 'wptexturize'); |
| 39 | 42 | add_filter('comment_author', 'convert_chars'); |
| … |
… |
|
| 45 | 48 | |
| 46 | 49 | add_filter('comment_text', 'convert_chars'); |
| 47 | 50 | add_filter('comment_text', 'make_clickable'); |
| | 51 | add_filter('comment_text', 'wp_rel_nofollow', 15); |
| 48 | 52 | add_filter('comment_text', 'wpautop', 30); |
| 49 | 53 | add_filter('comment_text', 'convert_smilies', 20); |
| 50 | 54 | |
RCS file: /cvsroot/cafelog/wordpress/wp-includes/functions-formatting.php,v
retrieving revision 1.67
diff -u -r1.67 functions-formatting.php
|
|
|
|
| 481 | 481 | |
| 482 | 482 | function make_clickable($ret) { |
| 483 | 483 | $ret = ' ' . $ret . ' '; |
| 484 | | $ret = preg_replace("#([\s>])(https?)://([^\s<>{}()]+[^\s.,<>{}()])#i", "$1<a href='$2://$3' rel='nofollow'>$2://$3</a>", $ret); |
| 485 | | $ret = preg_replace("#(\s)www\.([a-z0-9\-]+)\.([a-z0-9\-.\~]+)((?:/[^ <>{}()\n\r]*[^., <>{}()\n\r]?)?)#i", "$1<a href='http://www.$2.$3$4' rel='nofollow'>www.$2.$3$4</a>", $ret); |
| | 484 | $ret = preg_replace("#([\s>])(https?)://([^\s<>{}()]+[^\s.,<>{}()])#i", "$1<a href='$2://$3'>$2://$3</a>", $ret); |
| | 485 | $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); |
| 486 | 486 | $ret = preg_replace("#(\s)([a-z0-9\-_.]+)@([^,< \n\r]+)#i", "$1<a href=\"mailto:$2@$3\">$2@$3</a>", $ret); |
| 487 | 487 | $ret = trim($ret); |
| 488 | 488 | return $ret; |