Add stripos() for compatibility for PHP < 5. This will be needed for a patch later, I think.

git-svn-id: https://develop.svn.wordpress.org/trunk@5187 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
rob1n 2007-04-06 02:54:12 +00:00
parent 335777c369
commit 28066a110c

View File

@ -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);
}
}
?>