[buddypress-trac] [BuddyPress Trac] #7351: Empty date profile fields can return the epoch date

buddypress-trac noreply at wordpress.org
Thu Nov 17 15:51:22 UTC 2016


#7351: Empty date profile fields can return the epoch date
------------------------------+-----------------------------
 Reporter:  nickmomrik        |      Owner:
     Type:  defect (bug)      |     Status:  new
 Priority:  normal            |  Milestone:  Awaiting Review
Component:  Extended Profile  |    Version:  2.7.2
 Severity:  normal            |   Keywords:  has-patch
------------------------------+-----------------------------
 If you call something like
 {{{$date = bp_get_profile_field_data( array( 'user_id' =>
 bp_get_member_user_id(), 'field' => $id ) );}}}
 and the user hasn't filled anything in the field, you get back
 {{{'1970-01-01'}}} if you have {{{'Y-m-d'}}} as the field's date format.

 Before 2.7 this returned an empty string.

--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/7351>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list