From 1bca5d994da6cea2662007469e72390593a3c54a Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Wed, 30 Aug 2006 16:50:12 +0000 Subject: [PATCH] Don't duplicate nofollow on edit. Props filosofo. fixes #2995 git-svn-id: https://develop.svn.wordpress.org/trunk@4135 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/formatting.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/formatting.php b/wp-includes/formatting.php index f027869fad..999ce65dd8 100644 --- a/wp-includes/formatting.php +++ b/wp-includes/formatting.php @@ -598,7 +598,7 @@ function wp_rel_nofollow( $text ) { global $wpdb; // This is a pre save filter, so text is already escaped. $text = stripslashes($text); - $text = preg_replace('||i', '', $text); + $text = preg_replace('||ie', "''", $text); $text = $wpdb->escape($text); return $text; }