When good regex goes bad - http://mosquito.wordpress.org/view.php?id=851
git-svn-id: https://develop.svn.wordpress.org/trunk@2246 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
76d536c1fe
commit
64701e362c
|
@ -489,7 +489,7 @@ function make_clickable($ret) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function wp_rel_nofollow( $text ) {
|
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;
|
return $text;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue