[buddypress-trac] [BuddyPress Trac] #6884: Improve validation in BP_XProfile_Field_Type->is_valid()

buddypress-trac noreply at wordpress.org
Sun Feb 14 13:49:00 UTC 2016


#6884: Improve validation in BP_XProfile_Field_Type->is_valid()
---------------------------------------------+----------------------
 Reporter:  dcavins                          |       Owner:  dcavins
     Type:  defect (bug)                     |      Status:  closed
 Priority:  low                              |   Milestone:  2.5
Component:  Component - XProfile             |     Version:  2.4.0
 Severity:  minor                            |  Resolution:  fixed
 Keywords:  has-patch has-unit-tests commit  |
---------------------------------------------+----------------------
Changes (by dcavins):

 * status:  assigned => closed
 * resolution:   => fixed


Comment:

 In [changeset:"10592"]:
 {{{
 #!CommitTicketReference repository="" revision="10592"
 Profile: Improve validation in is_valid().

 When checking a submitted array of values,
 ensure that the `foreach` breaks when an
 invalid value is encountered. Previously,
 the `foreach` returned the validity of the
 last element in the array.

 Also update unit tests so that invalid values
 appear in various positions in the array of
 values to check.

 Fixes #6884.
 }}}

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


More information about the buddypress-trac mailing list