[buddypress-trac] [BuddyPress] #4102: Fallback logic in bp_get_the_profile_field_options() is broken

buddypress-trac at lists.automattic.com buddypress-trac at lists.automattic.com
Thu Mar 29 13:17:23 UTC 2012

#4102: Fallback logic in bp_get_the_profile_field_options() is broken
 Reporter:  boonebgorges  |       Owner:  boonebgorges
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:  1.5.6
Component:  XProfile      |     Version:
 Severity:  minor         |  Resolution:  fixed
 Keywords:                |
Changes (by boonebgorges):

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


 (In [5948]) Fixes problems is bp_get_the_profile_field_options():
 - In 'checkbox' case, cast existing values as an array, to avoid
 misunderstandings with count() and in_array() later in the function
 - In 'checkbox' case, replace call to non-existent 'value' variable to
 something that makes sense in context
 - Clears up PHP warnings, and allows for better maintenance of existing
 values when switching between xprofile field types.
 Fixes #4102

Ticket URL: <https://buddypress.trac.wordpress.org/ticket/4102#comment:1>
BuddyPress <http://buddypress.org/>

More information about the buddypress-trac mailing list