From d404a40ce8743ea08f1599c38c017ff99fdd2ff6 Mon Sep 17 00:00:00 2001 From: Michael Save Date: Thu, 26 Jan 2012 18:35:16 +1100 Subject: [PATCH] wordfilters (non-regex) should be case-insensitive --- inc/functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/functions.php b/inc/functions.php index c968ff69..15bddb84 100644 --- a/inc/functions.php +++ b/inc/functions.php @@ -1283,7 +1283,7 @@ if(isset($filter[2]) && $filter[2]) { $body = preg_replace($filter[0], $filter[1], $body); } else { - $body = str_replace($filter[0], $filter[1], $body); + $body = str_ireplace($filter[0], $filter[1], $body); } } }