Skip to:
Content

BuddyPress.org

Ticket #7599: 7599.patch

File 7599.patch, 632 bytes (added by mechter, 7 years ago)
  • src/bp-xprofile/bp-xprofile-filters.php

     
    288288 */
    289289function xprofile_filter_pre_validate_value_by_field_type( $value, $field, $field_type_obj ) {
    290290        if ( method_exists( $field_type_obj, 'pre_validate_filter' ) ) {
    291                 $value = call_user_func( array( $field_type_obj, 'pre_validate_filter' ), $value );
     291                $value = call_user_func( array( $field_type_obj, 'pre_validate_filter' ), $value, $field->id );
    292292        }
    293293
    294294        return $value;