[buddypress-trac] [BuddyPress Trac] #7516: bp_member_profile_data( 'field=Non existing fields' )

buddypress-trac noreply at wordpress.org
Sun Jun 4 06:11:30 UTC 2017

#7516: bp_member_profile_data( 'field=Non existing fields' )
 Reporter:  seventhqueen  |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Core          |     Version:
 Severity:  major         |  Resolution:
 Keywords:                |

Comment (by tw2113):

 I can definitely see this happening, since this is the line in question:

 $data = apply_filters( 'bp_get_member_profile_data_' . $profile_data[
 $r['field'] ]['field_type'], $data, $r );

 No isset checks at that point. Logically, in those cases, it's going to
 produce a filter name of `bp_get_member_profile_data_` without anything
 after the trailing _

 That said, it's hard to say if we want to try and default to a specific
 value or perhaps return early with a false value?

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

More information about the buddypress-trac mailing list