From c889e33be932eddc5f1cdd8aff3a3ae6aa4a6d36 Mon Sep 17 00:00:00 2001 From: real_nowhereman Date: Wed, 23 Dec 2009 22:39:59 +0000 Subject: [PATCH] add support to the new clean_pre behavior (wp2.7 accepts arrays...) --- fp-includes/core/core.wp-formatting.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/fp-includes/core/core.wp-formatting.php b/fp-includes/core/core.wp-formatting.php index 3be45af..cfbfcc9 100644 --- a/fp-includes/core/core.wp-formatting.php +++ b/fp-includes/core/core.wp-formatting.php @@ -61,7 +61,12 @@ - function clean_pre($text) { + function clean_pre($matches) { + if ( is_array($matches) ) + $text = $matches[1] . $matches[2] . ""; + else + $text = $matches; + /* NWM: a bit hackish? where are the slashes for double quotes added? */ $text = str_replace('\"', '"', $text); $text = str_replace('
', '', $text);