Skip to:
Content

bbPress.org

Opened 19 months ago

Closed 19 months ago

Last modified 15 months ago

#3216 closed defect (fixed)

bbp_get_time_since always returns right now

Reported by: siparker Owned by:
Milestone: 2.6 Priority: normal
Severity: normal Version: trunk
Component: General Keywords:
Cc:

Description

The function bbp_get_time_since in includes/common/formatting.php always returns “right now”.

bbPress Version: 2.6 release candidate 6

Change History (4)

This ticket was mentioned in Slack in #bbpress by siparker. View the logs.


19 months ago

#2 @johnjamesjacoby
19 months ago

In 6861:

Formatting: update bbp_get_time_since() to accept MySQL formatted string in older & newer dates.

Also cast values to int using intval() to ensure math always works, without notices or errors.

This change adds a bit more validation on potentially untrusted values.

See #3216.

#3 @johnjamesjacoby
19 months ago

  • Resolution set to fixed
  • Status changed from new to closed

Appears fixed, and tests passing.

Marking as fixed.

#4 @johnjamesjacoby
15 months ago

Assigning all closed & unassigned tickets in the 2.6 milestone to myself.

Note: See TracTickets for help on using tickets.