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:
parent
335777c369
commit
28066a110c
@ -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…
x
Reference in New Issue
Block a user