[buddypress-trac] [BuddyPress Trac] #5692: "bp_xprofile_field_get_children" filter not called if no children present
    buddypress-trac 
    noreply at wordpress.org
       
    Fri Jun  6 23:51:32 UTC 2014
    
    
  
#5692: "bp_xprofile_field_get_children" filter not called if no children present
--------------------------+-----------------------------
 Reporter:  drkane        |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  XProfile      |    Version:  2.0
 Severity:  normal        |   Keywords:
--------------------------+-----------------------------
 The "bp_xprofile_field_get_children" filter is not called if there are no
 children found in the SQL query in row 750 of /buddypress/bp-xprofile/bp-
 xprofile-classes.php, in the "get_children" function. Instead false is
 immediately returned.
 This means that if you want to add in children through a custom filter,
 there have to be dummy children present in the database.
 A use case for this might be a field which allows you to select a country.
 Rather than add each individual country as a selection option, which would
 take a long time, we could instead add them through a filter in a plugin.
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/5692>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac
    
    
More information about the buddypress-trac
mailing list