Opened 16 years ago
Closed 16 years ago
#3051 closed enhancement (fixed)
Changes on Xprofile hook bp_get_the_profile_field_edit_value
| Reported by: | marinig | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | 1.5 |
| Component: | Extended Profile | Version: | |
| Severity: | 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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
(In [4021]) Add field type and ID to profile field edit value filter. Fixes #3051