Skip to:
Content

Changeset 11588


Ignore:
Timestamp:
06/15/17 02:30:09 (7 months ago)
Author:
r-a-y
Message:

Members: Avoid a notice if an invalid field is passed in bp_member_profile_data().

Props seventhqueen.

Fixes #7516.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-members/bp-members-template.php

    r11360 r11588  
    11601160         * @param array       $r    Array of parsed arguments. 
    11611161         */ 
    1162         $data = apply_filters( 'bp_get_member_profile_data_' . $profile_data[ $r['field'] ]['field_type'], $data, $r ); 
     1162        if ( ! empty( $profile_data[ $r['field'] ]['field_type'] ) ) { 
     1163            $data = apply_filters( 'bp_get_member_profile_data_' . $profile_data[ $r['field'] ]['field_type'], $data, $r ); 
     1164        } 
    11631165 
    11641166        return $data; 
Note: See TracChangeset for help on using the changeset viewer.