[buddypress-trac] [BuddyPress Trac] #4187: Date field on registration

buddypress-trac noreply at wordpress.org
Fri Nov 4 14:25:34 UTC 2016


#4187: Date field on registration
------------------------------------+-----------------------------
 Reporter:  Mqlte                   |       Owner:
     Type:  defect (bug)            |      Status:  new
 Priority:  normal                  |   Milestone:  Future Release
Component:  Members                 |     Version:  1.5.5
 Severity:  minor                   |  Resolution:
 Keywords:  has-patch dev-feedback  |
------------------------------------+-----------------------------
Changes (by lakrisgubben):

 * keywords:  needs-patch => has-patch dev-feedback


Comment:

 I've abstracted this check out into its own function, not at all sure
 though on the name of the function and where it should live. ;) Happy to
 hear thoughts on that!

 I've also added a simple check to make sure that the POST data can be
 turned into a timestamp, so that any malformed data in the $_POST results
 in an empty date field being saved instead of defaulting to the unix
 epoch. I found 4 places in the code where this check was used and have
 changed them to use the new function, see attached patch.

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


More information about the buddypress-trac mailing list