Make WordPress Core


Ignore:
Timestamp:
10/04/2006 10:00:26 PM (19 years ago)
Author:
markjaquith
Message:

allow timer_stop() to use number_format() when returning. Props mdawaffe and nbachiyski. fixes #991

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.0/wp-includes/functions.php

    r4290 r4344  
    845845    $timeend = $mtime;
    846846    $timetotal = $timeend-$timestart;
     847    $r = number_format($timetotal, $precision);
    847848    if ( $display )
    848         echo number_format($timetotal,$precision);
    849     return $timetotal;
     849        echo $r;
     850    return $r;
    850851}
    851852
Note: See TracChangeset for help on using the changeset viewer.