mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
Restore support for floating point numbers in number_format_i18n(). Fixes #10555.
git-svn-id: https://develop.svn.wordpress.org/trunk@14190 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -219,7 +219,7 @@ function timer_stop( $display = 0, $precision = 3 ) { // if called like timer_st
|
||||
$mtime = explode( ' ', $mtime );
|
||||
$timeend = $mtime[1] + $mtime[0];
|
||||
$timetotal = $timeend - $timestart;
|
||||
$r = number_format( $timetotal, $precision );
|
||||
$r = ( function_exists( 'number_format_i18n' ) ) ? number_format_i18n( $timetotal, $precision ) : number_format( $timetotal, $precision );
|
||||
if ( $display )
|
||||
echo $r;
|
||||
return $r;
|
||||
|
||||
Reference in New Issue
Block a user