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:
parent
2d799e437b
commit
4a5335aee6
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
|
|
Loading…
Reference in New Issue