From 4a5335aee623630448c13abd8da1bcaabd38a138 Mon Sep 17 00:00:00 2001 From: rob1n Date: Fri, 6 Apr 2007 02:54:12 +0000 Subject: [PATCH] Add stripos() for compatibility for PHP < 5. This will be needed for a patch later, I think. git-svn-id: http://svn.automattic.com/wordpress/trunk@5187 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/compat.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/wp-includes/compat.php b/wp-includes/compat.php index d6006a481e..4448708df5 100644 --- a/wp-includes/compat.php +++ b/wp-includes/compat.php @@ -118,4 +118,11 @@ if ( !function_exists('_') ) { } } +// Added in PHP 5.0 +if (!function_exists('stripos')) { + function stripos($haystack, $needle, $offset = 0) { + return strpos(strtolower($haystack), strtolower($needle), $offset); + } +} + ?>