Changeset 4135
- Timestamp:
- 08/30/06 16:50:12 (2 years ago)
- Files:
-
- trunk/wp-includes/formatting.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/wp-includes/formatting.php
r4050 r4135 599 599 // This is a pre save filter, so text is already escaped. 600 600 $text = stripslashes($text); 601 $text = preg_replace('|<a (.+?)>|i ', '<a $1 rel="nofollow">', $text);601 $text = preg_replace('|<a (.+?)>|ie', "'<a ' . str_replace(' rel=\"nofollow\"','',stripslashes('$1')) . ' rel=\"nofollow\">'", $text); 602 602 $text = $wpdb->escape($text); 603 603 return $text;
