Changeset 1224
- Timestamp:
- 03/16/2009 03:12:01 PM (18 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
-
bp-xprofile.php (modified) (1 diff)
-
bp-xprofile/bp-xprofile-classes.php (modified) (1 diff)
-
bp-xprofile/bp-xprofile-filters.php (modified) (1 diff)
-
bp-xprofile/bp-xprofile-templatetags.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-xprofile.php
r1215 r1224 809 809 810 810 /** 811 * xprofile_get_field_data() 812 * 813 * Fetches profile data for a specific field for the user. 814 * 815 * @package BuddyPress Core 816 * @param $field_name The name of the field to get data for. 817 * @param $user_id The ID of the user 818 * @global $bp The global BuddyPress settings variable created in bp_core_setup_globals() 819 * @uses BP_XProfile_ProfileData::get_value_byfieldname() Fetches the value based on the params passed. 820 * @return The profile field data. 821 */ 822 function xprofile_get_field_data( $field_name, $user_id = null ) { 823 global $bp; 824 825 if ( !$user_id ) 826 $user_id = $bp->displayed_user->id; 827 828 return apply_filters( 'xprofile_get_field_data', BP_XProfile_ProfileData::get_value_byfieldname( $field_name, $user_id ) ); 829 } 830 831 /** 811 832 * xprofile_get_random_profile_data() 812 833 * -
trunk/bp-xprofile/bp-xprofile-classes.php
r1209 r1224 1165 1165 $user_id = $bp->displayed_user->id; 1166 1166 1167 $data = bp_get_field_data( BP_XPROFILE_FULLNAME_FIELD_NAME, $user_id );1167 $data = xprofile_get_field_data( BP_XPROFILE_FULLNAME_FIELD_NAME, $user_id ); 1168 1168 1169 1169 return $data[BP_XPROFILE_FULLNAME_FIELD_NAME]; -
trunk/bp-xprofile/bp-xprofile-filters.php
r1167 r1224 3 3 /* Apply WordPress defined filters */ 4 4 add_filter( 'bp_the_profile_field_value', 'wp_filter_kses', 1 ); 5 add_filter( ' bp_get_field_data', 'wp_filter_kses', 1 );5 add_filter( 'xprofile_get_field_data', 'wp_filter_kses', 1 ); 6 6 7 7 add_filter( 'bp_the_profile_field_value', 'wptexturize' ); -
trunk/bp-xprofile/bp-xprofile-templatetags.php
r1167 r1224 224 224 } 225 225 226 function bp_get_field_data( $field, $user_id = null ) {227 return apply_filters( 'bp_get_field_data', BP_XProfile_ProfileData::get_value_byfieldname( $field, $user_id ) );228 }229 230 226 function bp_profile_group_tabs() { 231 227 global $bp, $group_name;
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)