mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user