Ticket #2995: formatting.php.diff
| File formatting.php.diff, 582 bytes (added by filosofo, 6 years ago) |
|---|
-
wp-includes/formatting.php
598 598 global $wpdb; 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; 604 604 }
