[buddypress-trac] [BuddyPress Trac] #6354: `xprofile_insert_field()` `empty()` checks break booleans when updating existing field

buddypress-trac noreply at wordpress.org
Tue Apr 7 00:54:08 UTC 2015


#6354: `xprofile_insert_field()` `empty()` checks break booleans when updating
existing field
----------------------------------+---------------------------
 Reporter:  boonebgorges          |       Owner:  boonebgorges
     Type:  defect (bug)          |      Status:  closed
 Priority:  normal                |   Milestone:  2.3
Component:  Component - XProfile  |     Version:
 Severity:  normal                |  Resolution:  fixed
 Keywords:                        |
----------------------------------+---------------------------
Changes (by boonebgorges):

 * owner:   => boonebgorges
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"9711"]:
 {{{
 #!CommitTicketReference repository="" revision="9711"
 Improve parameter sanitization in `xprofile_insert_field()`.

 The overzealous `empty()` checks meant that it was impossible to set
 certain
 values on existing fields to falsey values.

 Fixes #6354.
 }}}

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


More information about the buddypress-trac mailing list