Make WordPress Core

Ticket #991: 991branches20.diff

File 991branches20.diff, 1.3 KB (added by mdawaffe, 20 years ago)
  • wp-includes/functions.php

     
    844844        $mtime = $mtime[1] + $mtime[0];
    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
    852853function weblog_ping($server = '', $path = '') {
    … …  
    25082509        die();
    25092510}
    25102511
    2511 ?>
    2512  No newline at end of file
     2512?>
  • wp-admin/admin-footer.php

     
    22<div id="footer"><p><a href="http://wordpress.org/" id="wordpress-logo"><img src="images/wordpress-logo.png" alt="WordPress" /></a></p>
    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
    88</div>