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
This commit is contained in:
rob1n 2007-04-06 02:54:12 +00:00
parent 2d799e437b
commit 4a5335aee6
1 changed files with 7 additions and 0 deletions

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