[buddypress-trac] [BuddyPress Trac] #7916: Warning after deleting xprofile fields group
    buddypress-trac 
    noreply at wordpress.org
       
    Fri Aug 31 18:41:22 UTC 2018
    
    
  
#7916: Warning after deleting xprofile fields group
--------------------------+---------------------
 Reporter:  djanym        |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  3.2.0
Component:  Core          |     Version:  3.0.0
 Severity:  normal        |  Resolution:
 Keywords:                |
--------------------------+---------------------
Comment (by boonebgorges):
 So, as far as I can see, this code does nothing. It appears that the
 `fields` property of a `BP_XProfile_Group` object is never populated. In
 `BP_XProfile_Group::get()`, the `fields` property of each `group` object
 is populated, but these are `stdClass` objects, not `BP_XProfile_Group`.
 So it's not really possible to write a test that demonstrates the
 functionality. I'm going to throw an `empty()` check in front of it, to
 squelch the error.
-- 
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/7916#comment:2>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac
    
    
More information about the buddypress-trac
mailing list