[buddypress-trac] [BuddyPress] #3051: Changes on Xprofile hook bp_get_the_profile_field_edit_value

buddypress-trac at lists.automattic.com buddypress-trac at lists.automattic.com
Sat Feb 5 08:35:35 UTC 2011


#3051: Changes on Xprofile hook bp_get_the_profile_field_edit_value
-------------------------+-----------------------------
 Reporter:  marinig      |      Owner:
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  Awaiting Review
Component:  XProfile     |    Version:
 Keywords:               |
-------------------------+-----------------------------
 '''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

-- 
Ticket URL: <https://trac.buddypress.org/ticket/3051>
BuddyPress <http://buddypress.org/>
BuddyPress


More information about the buddypress-trac mailing list