summaryrefslogtreecommitdiffstats
path: root/wp-includes/compat.php
diff options
context:
space:
mode:
Diffstat (limited to 'wp-includes/compat.php')
-rw-r--r--wp-includes/compat.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/wp-includes/compat.php b/wp-includes/compat.php
index 997307f..e68ec2a 100644
--- a/wp-includes/compat.php
+++ b/wp-includes/compat.php
@@ -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);
+ }
+}
+
?>