Changeset 4135
- Timestamp:
- 08/30/2006 04:50:12 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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;
Note: See TracChangeset
for help on using the changeset viewer.