Added optional floatval function for PHP < 4.2.0
git-svn-id: http://svn.automattic.com/wordpress/trunk@310 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
c32fb874c7
commit
3bb338ca93
|
@ -6,6 +6,11 @@ if (!function_exists('_')) {
|
|||
}
|
||||
}
|
||||
|
||||
if (!function_exists('floatval')) {
|
||||
function floatval($string) {
|
||||
return ((float) $string);
|
||||
}
|
||||
}
|
||||
|
||||
/* functions... */
|
||||
|
||||
|
|
Loading…
Reference in New Issue