[wp-cvs] wordpress/wp-includes functions-formatting.php,1.62,1.63

Matthew Mullenweg saxmatt at users.sourceforge.net
Mon Jan 24 06:01:07 GMT 2005


Update of /cvsroot/cafelog/wordpress/wp-includes
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12195/wp-includes

Modified Files:
	functions-formatting.php 
Log Message:
Handle time_diff less than a minute http://mosquito.wordpress.org/view.php?id=737

Index: functions-formatting.php
===================================================================
RCS file: /cvsroot/cafelog/wordpress/wp-includes/functions-formatting.php,v
retrieving revision 1.62
retrieving revision 1.63
diff -C2 -d -r1.62 -r1.63
*** functions-formatting.php	21 Jan 2005 18:24:14 -0000	1.62
--- functions-formatting.php	24 Jan 2005 06:01:04 -0000	1.63
***************
*** 621,625 ****
  	if ($diff <= 3600) {
  		$mins = round($diff / 60);
! 		$since = sprintf( __('%s mins'), $mins);
  	} else if (($diff <= 86400) && ($diff > 3600)) {
  		$hours = round($diff / 3600);
--- 621,628 ----
  	if ($diff <= 3600) {
  		$mins = round($diff / 60);
! 		if ($mins <= 1)
! 			$since = __('1 min');
! 		else
! 			$since = sprintf( __('%s mins'), $mins);
  	} else if (($diff <= 86400) && ($diff > 3600)) {
  		$hours = round($diff / 3600);



More information about the cvs mailing list