Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
05/24/2013 05:45:22 PM (11 years ago)
Author:
boonebgorges
Message:

Update tests and documentation for bp_core_time_since() to reflect seconds quirk

Fixes #5017

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-core/bp-core-functions.php

    r7102 r7104  
    570570 * eg: 4 days
    571571 * eg: 4 weeks and 6 days
     572 *
     573 * Note that fractions of minutes are not represented in the return string. So
     574 * an interval of 3 minutes will be represented by "3 minutes ago", as will an
     575 * interval of 3 minutes 59 seconds.
    572576 *
    573577 * @package BuddyPress Core
     
    671675
    672676            // Step two: the second chunk
     677            // A quirk in the implementation means that this
     678            // condition fails in the case of minutes and seconds.
     679            // We've left the quirk in place, since fractions of a
     680            // minute are not a useful piece of information for our
     681            // purposes
    673682            if ( $i + 2 < $j ) {
    674683                $seconds2 = $chunks[$i + 1];
Note: See TracChangeset for help on using the changeset viewer.