Opened 15 years ago
Closed 15 years ago
#3051 closed enhancement (fixed)
Changes on Xprofile hook bp_get_the_profile_field_edit_value
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Milestone: | 1.5 | Priority: | normal |
| Severity: | Version: | ||
| Component: | Extended Profile | Keywords: | |
| Cc: |
Description
File: bp-xprofile-templatetags.php
Function: bp_get_the_profile_field_edit_value() [Line 306]
Filter Hook: bp_get_the_profile_field_edit_value [Line 320]
Original code:
return apply_filters( 'bp_get_the_profile_field_edit_value', esc_html( $field->data->value ) );
Suggested change:
return apply_filters( 'bp_get_the_profile_field_edit_value', esc_html( $field->data->value ), $field->type, $field->id );
The corresponding hook in the bp_get_the_profile_field_value function [Line 300] passes the field type and field id (along with the field value) as arguments. Why not include field type and id in the bp_get_the_profile_field_edit_value hook too?
Thanks
Change History (2)
Note: See
TracTickets for help on using
tickets.
(In [4021]) Add field type and ID to profile field edit value filter. Fixes #3051