Skip to:

Opened 12 years ago

Closed 12 years ago

Last modified 8 years ago

#4319 closed enhancement (fixed)

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

Reported by: hnla's profile hnla Owned by:
Milestone: 1.6 Priority: normal
Severity: trivial Version: 1.6
Component: Templates 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 (4)

#1 @boonebgorges
12 years ago

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

Sure, this is a good idea.

#2 @boonebgorges
12 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
9 years ago

  • Version changed from 1.6-beta to 1.6

#4 @DJPaul
8 years ago

  • Component changed from Appearance - Template Parts to Templates
Note: See TracTickets for help on using tickets.