WordPress.org

Make WordPress Core

Changeset 4344


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

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

Location:
branches/2.0
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/2.0/wp-admin/admin-footer.php

    r3492 r4344  
    33<p>
    44<a href="http://codex.wordpress.org/"><?php _e('Documentation'); ?></a> &#8212; <a href="http://wordpress.org/support/"><?php _e('Support Forums'); ?></a> <br />
    5 <?php bloginfo('version'); ?> &#8212; <?php printf(__('%s seconds'), number_format(timer_stop(), 2)); ?>
     5<?php bloginfo('version'); ?> &#8212; <?php printf(__('%s seconds'), timer_stop(0, 2)); ?>
    66</p>
    77
  • 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.