Changeset 4233
- Timestamp:
- 09/25/2006 02:16:18 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.0/wp-includes/functions-formatting.php
r4052 r4233 592 592 593 593 function wp_rel_nofollow( $text ) { 594 $text = preg_replace('|<a (.+?)>|i ', '<a $1 rel="nofollow">', $text);594 $text = preg_replace('|<a (.+?)>|ie', "'<a ' . str_replace(' rel=\"nofollow\"','',stripslashes('$1')) . ' rel=\"nofollow\">'", $text); 595 595 return $text; 596 596 }
Note: See TracChangeset
for help on using the changeset viewer.