Skip to:
Content

BuddyPress.org

Changeset 11699


Ignore:
Timestamp:
09/27/2017 08:09:50 AM (7 years ago)
Author:
djpaul
Message:

xprofile: pass field ID to filters that modify submitted data before validation.

Fixes #7599

Props mechter

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-xprofile/bp-xprofile-filters.php

    r11692 r11699  
    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
Note: See TracChangeset for help on using the changeset viewer.