Opened 4 years ago
Closed 4 years ago
#5121 closed defect (bug) (fixed)
Fix support forum dates title and datetime attributes
Reported by: | TweetyThierry | Owned by: | dd32 |
---|---|---|---|
Milestone: | Priority: | normal | |
Component: | Support Forums | Keywords: | needs-patch |
Cc: |
Description
The title attributes for dates (example: 1 day, 2 hours ago) on the support forum are set using the post title instead of the created date (title should be in date format, not time ago). This would be specifically useful when hovering over the "time ago" date to see the actual date.
Additionally these HTML should contain datetime
attribute too.
Change History (2)
Note: See
TracTickets for help on using
tickets.
I believe this is the template line https://meta.trac.wordpress.org/browser/sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-forums/bbpress/loop-single-reply.php#L39 which needs to be updated.
Since to my knowledge there isn't a core bbPress function to get the last reply date, we may have to add a helper function, something similar to
bbp_get_topic_last_active_time()
but returning the date or timestamp. For example: