From bbb5ffca6d0363523cfaad995325d6d20f2a5351 Mon Sep 17 00:00:00 2001 From: ryan Date: Wed, 30 Aug 2006 16:50:12 +0000 Subject: [PATCH] Don't duplicate nofollow on edit. Props filosofo. fixes #2995 git-svn-id: http://svn.automattic.com/wordpress/trunk@4135 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- 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; }