mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-08 19:20:03 +00:00
Applying patches from otaku42: Fix two bugs in images uploads. Fix time_difference limitations.
git-svn-id: https://develop.svn.wordpress.org/trunk@456 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -1284,4 +1284,21 @@ function pingGeoURL($blog_ID) {
|
||||
getRemoteFile($host,$path);
|
||||
}
|
||||
|
||||
|
||||
// implementation of in_array that also should work on PHP3
|
||||
if (!function_exists('in_array')) {
|
||||
|
||||
function in_array($needle, $haystack) {
|
||||
$needle = strtolower($needle);
|
||||
|
||||
for ($i = 0; $i < count($haystack); $i++) {
|
||||
if (strtolower($haystack[$i]) == $needle) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user