[buddypress-trac] [BuddyPress Trac] #7154: bp_profile_get_field_groups() does not set `fields` property for xprofile groups without fields

buddypress-trac noreply at wordpress.org
Fri Jul 1 08:10:34 UTC 2016


#7154: bp_profile_get_field_groups() does not set `fields` property for xprofile
groups without fields
------------------------------+----------------------------
 Reporter:  DJPaul            |      Owner:
     Type:  enhancement       |     Status:  new
 Priority:  normal            |  Milestone:  Future Release
Component:  Extended Profile  |    Version:
 Severity:  normal            |   Keywords:
------------------------------+----------------------------
 When using `bp_profile_get_field_groups`, you get an array of objects for
 each profile field group. Within each object, there's a property `fields`
 which is an array of objects for the fields in that group.

 However, if a field group has no fields, this `fields` property is not
 set. It really should be set as an empty array for consistency in its
 return types.

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


More information about the buddypress-trac mailing list