Make WordPress Core

Changeset 4345


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

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

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/admin-footer.php

    r4259 r4345  
    44        <p>
    55                <?php _e('<a href="http://codex.wordpress.org/">Documentation</a>'); ?> &#8212; <?php _e('<a href="http://wordpress.org/support/">Support Forums</a>'); ?> <br />
    6                 <?php bloginfo('version'); ?> &#8212; <?php printf(__('%s seconds'), number_format(timer_stop(), 2)); ?>
     6                <?php bloginfo('version'); ?> &#8212; <?php printf(__('%s seconds'), timer_stop(0, 2)); ?>
    77        </p>
    88</div>
  • trunk/wp-settings.php

    r4203 r4345  
    6868        $timeend = $mtime;
    6969        $timetotal = $timeend-$timestart;
     70        $r = number_format($timetotal, $precision);
    7071        if ( $display )
    71                 echo number_format($timetotal,$precision);
    72         return $timetotal;
     72                echo $r;
     73        return $r;
    7374}
    7475timer_start();
Note: See TracChangeset for help on using the changeset viewer.