Make WordPress Core

Ticket #991: 991trunk.diff

File 991trunk.diff, 1.2 KB (added by mdawaffe, 20 years ago)
  • wp-settings.php

     
    6767        $mtime = $mtime[1] + $mtime[0];
    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();
    7576
  • wp-admin/admin-footer.php

     
    33        <p><a href="http://wordpress.org/" id="wordpress-logo"><img src="images/wordpress-logo.png" alt="WordPress" /></a></p>
    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>
    99<?php do_action('admin_footer', ''); ?>