[buddypress-trac] [BuddyPress Trac] #8083: Add Age option to BP Xprofile Databox

buddypress-trac noreply at wordpress.org
Thu Apr 29 10:20:45 UTC 2021


#8083: Add Age option to BP Xprofile Databox
-----------------------------------+---------------------
 Reporter:  Venutius               |       Owner:  imath
     Type:  enhancement            |      Status:  closed
 Priority:  normal                 |   Milestone:  8.0.0
Component:  Extended Profile       |     Version:
 Severity:  normal                 |  Resolution:  fixed
 Keywords:  has-patch 2nd-opinion  |
-----------------------------------+---------------------
Changes (by imath):

 * owner:  (none) => imath
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"12931" 12931]:
 {{{
 #!CommitTicketReference repository="" revision="12931"
 Add an option to display a datebox Profile Field type value as an age

 This xProfile field type now support a new date format allowing Community
 site admins to display the age of their members according to their birth
 date.

 - Moves the date difference calculation from `bp_core_time_since()` to a
 newly introduced function: `bp_core_time_diff()`
 - Introduce the function `bp_core_time_old()` to format a birth date as an
 age eg: "20 years old".

 Props Venutius

 Fixes #8083
 }}}

-- 
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/8083#comment:6>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list