Skip to:

Opened 3 years ago

Closed 3 years ago

Last modified 10 months ago

#4319 closed enhancement (fixed)

Update members-header.php profile field guide to state bp_member_profile_data()

Reported by: hnla Owned by:
Milestone: 1.6 Priority: normal
Severity: trivial Version: 1.6
Component: Appearance - Template Parts Keywords: 2nd-opinion
Cc: hnla


We are still saying in members-header "to output additional profile fields use bp_profile_field_data() yet that function doesn't appear to want to render an array whereas the newer bp_member_profile_data() does output an array.

Should we not change this comment message and save people getting confused?

Change History (3)

#1 @boonebgorges
3 years ago

  • Milestone changed from Awaiting Review to 1.6
  • Severity changed from minor to trivial

Sure, this is a good idea.

#2 @boonebgorges
3 years ago

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

(In [6218]) Improved documentation in member-header.php

In member-header.php template, we suggest to theme authors that they can
include arbitrary profile data by calling a template function. Previously
we recommended bp_profile_field_data(). But this function, when called on a
field that contains values stored in an array, does not make the array
presentable. The newer bp_member_profile_data() is better for this purpose.
This changeset updates the documentation accordingly.

Fixes #4319

Props hnla

#3 @johnjamesjacoby
10 months ago

  • Version changed from 1.6-beta to 1.6
Note: See TracTickets for help on using tickets.