When good regex goes bad - http://mosquito.wordpress.org/view.php?id=851
git-svn-id: http://svn.automattic.com/wordpress/trunk@2246 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
695b6499d0
commit
6f8ab483d8
|
@ -489,7 +489,7 @@ function make_clickable($ret) {
|
|||
}
|
||||
|
||||
function wp_rel_nofollow( $text ) {
|
||||
$text = preg_replace('|<a(.+?)>|i', '<a$1 rel="nofollow">', $text);
|
||||
$text = preg_replace('|<a (.+?)>|i', '<a $1 rel="nofollow">', $text);
|
||||
return $text;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue