Skip to:
Content

BuddyPress.org

Opened 14 years ago

Closed 14 years ago

#3051 closed enhancement (fixed)

Changes on Xprofile hook bp_get_the_profile_field_edit_value

Reported by: marinig's profile marinig 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)

#1 @DJPaul
14 years ago

  • Milestone changed from Awaiting Review to 1.3

#2 @djpaul
14 years ago

  • Resolution set to fixed
  • Status changed from new to closed

(In [4021]) Add field type and ID to profile field edit value filter. Fixes #3051

Note: See TracTickets for help on using tickets.