Make WordPress Core


Ignore:
Timestamp:
04/06/2007 02:54:12 AM (18 years ago)
Author:
rob1n
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/compat.php

    r4495 r5187  
    119119}
    120120
     121// Added in PHP 5.0
     122if (!function_exists('stripos')) {
     123    function stripos($haystack, $needle, $offset = 0) {
     124        return strpos(strtolower($haystack), strtolower($needle), $offset);
     125    }
     126}
     127
    121128?>
Note: See TracChangeset for help on using the changeset viewer.