add support to the new clean_pre behavior (wp2.7 accepts arrays...)

This commit is contained in:
real_nowhereman 2009-12-23 22:39:59 +00:00
parent 2877a9bffe
commit c889e33be9

View File

@ -61,7 +61,12 @@
function clean_pre($text) {
function clean_pre($matches) {
if ( is_array($matches) )
$text = $matches[1] . $matches[2] . "</pre>";
else
$text = $matches;
/* NWM: a bit hackish? where are the slashes for double quotes added? */
$text = str_replace('\"', '"', $text);
$text = str_replace('<br />', '', $text);