Changeset 5187

Show
Ignore:
Timestamp:
04/06/07 02:54:12 (2 years ago)
Author:
rob1n
Message:

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

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • 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?>