mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-01 15:50:09 +00:00
Added optional floatval function for PHP < 4.2.0
git-svn-id: https://develop.svn.wordpress.org/trunk@310 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -6,6 +6,11 @@ if (!function_exists('_')) {
|
||||
}
|
||||
}
|
||||
|
||||
if (!function_exists('floatval')) {
|
||||
function floatval($string) {
|
||||
return ((float) $string);
|
||||
}
|
||||
}
|
||||
|
||||
/* functions... */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user