Changeset 5792
- Timestamp:
- 02/15/2012 08:44:52 PM (13 years ago)
- Location:
- trunk
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-themes/bp-default/_inc/css/default.css
r5789 r5792 2372 2372 margin-top: 15px; 2373 2373 } 2374 body.no-js .field- privacy-settings-toggle,2375 body.no-js .field- privacy-settings-close {2374 body.no-js .field-visibility-settings-toggle, 2375 body.no-js .field-visibility-settings-close { 2376 2376 display: none; 2377 2377 } 2378 .field- privacy-settings {2378 .field-visibility-settings { 2379 2379 display: none; 2380 2380 } 2381 body.no-js .field- privacy-settings {2381 body.no-js .field-visibility-settings { 2382 2382 display: block; 2383 2383 } 2384 .current- privacy-level {2384 .current-visibility-level { 2385 2385 font-weight: bold; 2386 2386 } 2387 .field- privacy-settings-toggle a,2388 .field- privacy-settings a {2387 .field-visibility-settings-toggle a, 2388 .field-visibility-settings a { 2389 2389 font-size: .9em; 2390 2390 } -
trunk/bp-themes/bp-default/_inc/global.js
r5791 r5792 808 808 }); 809 809 810 /** Profile Privacy Settings *********************************/810 /** Profile Visibility Settings *********************************/ 811 811 812 jq('. privacy-toggle-link').on( 'click', function() {812 jq('.visibility-toggle-link').on( 'click', function() { 813 813 var toggle_div = jq(this).parent(); 814 814 815 815 jq(toggle_div).slideUp( 200, function(){ 816 jq(toggle_div).siblings('.field- privacy-settings').slideDown(200);816 jq(toggle_div).siblings('.field-visibility-settings').slideDown(200); 817 817 }); 818 818 … … 820 820 } ); 821 821 822 jq('.field- privacy-settings-close').on( 'click', function() {822 jq('.field-visibility-settings-close').on( 'click', function() { 823 823 var settings_div = jq(this).parent(); 824 824 825 825 jq(settings_div).slideUp( 200, function(){ 826 jq(settings_div).siblings('.field- privacy-settings-toggle').slideDown(200);826 jq(settings_div).siblings('.field-visibility-settings-toggle').slideDown(200); 827 827 }); 828 828 -
trunk/bp-themes/bp-default/members/single/profile/edit.php
r5789 r5792 116 116 <?php /* The fullname field is always public */ ?> 117 117 <?php if ( 1 != bp_get_the_profile_field_id() ) : ?> 118 <div class="field- privacy-settings-toggle" id="field-privacy-settings-toggle-<?php bp_the_profile_field_id() ?>">119 <?php printf( __( 'This field can be seen by: <span class="current- privacy-level">%s</span>', 'buddypress' ), bp_get_the_profile_field_privacy_level_label() ) ?> <a href="#" class="privacy-toggle-link">Change</a>118 <div class="field-visibility-settings-toggle" id="field-visibility-settings-toggle-<?php bp_the_profile_field_id() ?>"> 119 <?php printf( __( 'This field can be seen by: <span class="current-visibility-level">%s</span>', 'buddypress' ), bp_get_the_profile_field_visibility_level_label() ) ?> <a href="#" class="visibility-toggle-link">Change</a> 120 120 </div> 121 121 122 <div class="field- privacy-settings" id="field-privacy-settings-<?php bp_the_profile_field_id() ?>">123 <label for="field- privacy"><?php _e( 'Who can see this field?', 'buddypress' ) ?></label>122 <div class="field-visibility-settings" id="field-visibility-settings-<?php bp_the_profile_field_id() ?>"> 123 <label for="field-visibility"><?php _e( 'Who can see this field?', 'buddypress' ) ?></label> 124 124 125 <?php bp_profile_ privacy_radio_buttons() ?>125 <?php bp_profile_visibility_radio_buttons() ?> 126 126 127 <a class="field- privacy-settings-close" href="#"><?php _e( 'Close', 'buddypress' ) ?></a>127 <a class="field-visibility-settings-close" href="#"><?php _e( 'Close', 'buddypress' ) ?></a> 128 128 </div> 129 129 <?php endif ?> -
trunk/bp-xprofile/bp-xprofile-admin.php
r5789 r5792 272 272 bp_update_option( 'bp-xprofile-fullname-field-name', $field->name ); 273 273 274 if ( !empty( $_POST['default- privacy'] ) ) {275 bp_xprofile_update_field_meta( $field_id, 'default_ privacy', $_POST['default-privacy'] );274 if ( !empty( $_POST['default-visibility'] ) ) { 275 bp_xprofile_update_field_meta( $field_id, 'default_visibility', $_POST['default-visibility'] ); 276 276 } 277 277 -
trunk/bp-xprofile/bp-xprofile-classes.php
r5789 r5792 121 121 'fetch_fields' => false, 122 122 'fetch_field_data' => false, 123 'fetch_ privacy_level' => false,123 'fetch_visibility_level' => false, 124 124 'exclude_groups' => false, 125 125 'exclude_fields' => false … … 168 168 } 169 169 170 // Privacy - Handled here so as not to be overridden by sloppy use of the170 // Visibility - Handled here so as not to be overridden by sloppy use of the 171 171 // exclude_fields parameter. See bp_xprofile_get_hidden_fields_for_user() 172 172 $exclude_fields_cs = array_merge( $exclude_fields_cs, bp_xprofile_get_hidden_fields_for_user( $user_id ) ); … … 241 241 } 242 242 243 if ( $fetch_ privacy_level ) {244 $fields = self::fetch_ privacy_level( $user_id, $fields );243 if ( $fetch_visibility_level ) { 244 $fields = self::fetch_visibility_level( $user_id, $fields ); 245 245 } 246 246 } … … 295 295 296 296 /** 297 * Fetch the field privacy level for the returned fielddata297 * Fetch the field visibility level for the returned fielddata 298 298 */ 299 function fetch_ privacy_level( $user_id, $fields ) {299 function fetch_visibility_level( $user_id, $fields ) { 300 300 global $wpdb, $bp; 301 301 302 // Get the user's privacy level preferences303 $ privacy_levels = get_user_meta( $user_id, 'bp_xprofile_privacy_levels', true );302 // Get the user's visibility level preferences 303 $visibility_levels = get_user_meta( $user_id, 'bp_xprofile_visibility_levels', true ); 304 304 305 305 foreach( (array)$fields as $key => $field ) { 306 // Look to see if the user has set the privacy for this field307 if ( isset( $ privacy_levels[$field->id] ) ) {308 $field_ privacy = $privacy_levels[$field->id];306 // Look to see if the user has set the visibility for this field 307 if ( isset( $visibility_levels[$field->id] ) ) { 308 $field_visibility = $visibility_levels[$field->id]; 309 309 } else { 310 310 // If not, bring up the admin-set defaults 311 if ( !isset( $default_ privacy_levels ) ) {312 $default_ privacy_levels = self::fetch_default_privacy_levels();311 if ( !isset( $default_visibility_levels ) ) { 312 $default_visibility_levels = self::fetch_default_visibility_levels(); 313 313 } 314 314 315 315 // If no admin-set default is saved, fall back on a global default 316 $field_ privacy = !empty( $default_privacy_levels[$field->id] ) ? $default_privacy_levels[$field->id] : apply_filters( 'bp_xprofile_default_privacy_level', 'public' );316 $field_visibility = !empty( $default_visibility_levels[$field->id] ) ? $default_visibility_levels[$field->id] : apply_filters( 'bp_xprofile_default_visibility_level', 'public' ); 317 317 } 318 318 319 $fields[$key]-> privacy_level = $field_privacy;319 $fields[$key]->visibility_level = $field_visibility; 320 320 } 321 321 … … 324 324 325 325 /** 326 * Fetch the admin-set default privacy levels for all fields326 * Fetch the admin-set default visibility levels for all fields 327 327 */ 328 function fetch_default_ privacy_levels() {328 function fetch_default_visibility_levels() { 329 329 global $wpdb, $bp; 330 330 331 $levels = $wpdb->get_results( $wpdb->prepare( "SELECT object_id, meta_value FROM {$bp->profile->table_name_meta} WHERE object_type = 'field' AND meta_key = 'default_ privacy'" ) );331 $levels = $wpdb->get_results( $wpdb->prepare( "SELECT object_id, meta_value FROM {$bp->profile->table_name_meta} WHERE object_type = 'field' AND meta_key = 'default_visibility'" ) ); 332 332 333 // Arrange so that the field id is the key and the privacy level the value334 $default_ privacy_levels = array();333 // Arrange so that the field id is the key and the visibility level the value 334 $default_visibility_levels = array(); 335 335 foreach( $levels as $level ) { 336 $default_ privacy_levels[$level->object_id] = $level->meta_value;336 $default_visibility_levels[$level->object_id] = $level->meta_value; 337 337 } 338 338 339 return $default_ privacy_levels;339 return $default_visibility_levels; 340 340 } 341 341 … … 419 419 var $order_by; 420 420 var $is_default_option; 421 var $default_ privacy;421 var $default_visibility; 422 422 423 423 var $data; … … 458 458 } 459 459 460 $this->default_ privacy = bp_xprofile_get_meta( $id, 'field', 'default_privacy' );460 $this->default_visibility = bp_xprofile_get_meta( $id, 'field', 'default_visibility' ); 461 461 462 if ( empty( $this->default_ privacy ) ) {463 $this->default_ privacy = 'public';462 if ( empty( $this->default_visibility ) ) { 463 $this->default_visibility = 'public'; 464 464 } 465 465 } … … 723 723 } 724 724 725 if ( empty( $this->default_ privacy ) ) {726 $this->default_ privacy = 'public';725 if ( empty( $this->default_visibility ) ) { 726 $this->default_visibility = 'public'; 727 727 } 728 728 … … 878 878 879 879 <div id="titlediv"> 880 <h3><label for="default- privacy"><?php _e( "Default Privacy Level", 'buddypress' ); ?></label></h3>880 <h3><label for="default-visibility"><?php _e( "Default Visibility Level", 'buddypress' ); ?></label></h3> 881 881 <div id="titlewrap"> 882 882 <ul> 883 <?php foreach( bp_xprofile_get_ privacy_levels() as $level ) : ?>884 <li><input type="radio" name="default- privacy" value="<?php echo esc_attr( $level['id'] ) ?>" <?php checked( $this->default_privacy, $level['id'] ) ?>> <?php echo esc_html( $level['label'] ) ?></li>883 <?php foreach( bp_xprofile_get_visibility_levels() as $level ) : ?> 884 <li><input type="radio" name="default-visibility" value="<?php echo esc_attr( $level['id'] ) ?>" <?php checked( $this->default_visibility, $level['id'] ) ?>> <?php echo esc_html( $level['label'] ) ?></li> 885 885 <?php endforeach ?> 886 886 </ul> -
trunk/bp-xprofile/bp-xprofile-functions.php
r5789 r5792 252 252 253 253 /** 254 * Set the privacy level for this field254 * Set the visibility level for this field 255 255 * 256 256 * @param int $field_id The ID of the xprofile field 257 257 * @param int $user_id The ID of the user to whom the data belongs 258 * @param string $ privacy_level258 * @param string $visibility_level 259 259 * @return bool True on success 260 260 */ 261 function xprofile_set_field_ privacy_level( $field_id = 0, $user_id = 0, $privacy_level = '' ) {262 if ( empty( $field_id ) || empty( $user_id ) || empty( $ privacy_level ) ) {261 function xprofile_set_field_visibility_level( $field_id = 0, $user_id = 0, $visibility_level = '' ) { 262 if ( empty( $field_id ) || empty( $user_id ) || empty( $visibility_level ) ) { 263 263 return false; 264 264 } … … 272 272 273 273 // Check against a whitelist 274 $allowed_values = bp_xprofile_get_ privacy_levels();275 if ( !array_key_exists( $ privacy_level, $allowed_values ) ) {274 $allowed_values = bp_xprofile_get_visibility_levels(); 275 if ( !array_key_exists( $visibility_level, $allowed_values ) ) { 276 276 return false; 277 277 } 278 278 279 279 // Stored in an array in usermeta 280 $current_ privacy_levels = get_user_meta( $user_id, 'bp_xprofile_privacy_levels', true );281 282 if ( !$current_ privacy_levels ) {283 $current_ privacy_levels = array();284 } 285 286 $current_ privacy_levels[$field_id] = $privacy_level;287 288 return update_user_meta( $user_id, 'bp_xprofile_ privacy_levels', $current_privacy_levels );280 $current_visibility_levels = get_user_meta( $user_id, 'bp_xprofile_visibility_levels', true ); 281 282 if ( !$current_visibility_levels ) { 283 $current_visibility_levels = array(); 284 } 285 286 $current_visibility_levels[$field_id] = $visibility_level; 287 288 return update_user_meta( $user_id, 'bp_xprofile_visibility_levels', $current_visibility_levels ); 289 289 } 290 290 … … 645 645 646 646 /** 647 * Get privacy levels out of the $bp global647 * Get visibility levels out of the $bp global 648 648 * 649 649 * @return array 650 650 */ 651 function bp_xprofile_get_ privacy_levels() {651 function bp_xprofile_get_visibility_levels() { 652 652 global $bp; 653 653 654 return apply_filters( 'bp_xprofile_get_ privacy_levels', $bp->profile->privacy_levels );654 return apply_filters( 'bp_xprofile_get_visibility_levels', $bp->profile->visibility_levels ); 655 655 } 656 656 … … 658 658 * Get the ids of fields that are hidden for this displayed/loggedin user pair 659 659 * 660 * This is the function primarily responsible for profile field privacy. It works by determining660 * This is the function primarily responsible for profile field visibility. It works by determining 661 661 * the relationship between the displayed_user (ie the profile owner) and the current_user (ie the 662 662 * profile viewer). Then, based on that relationship, we query for the set of fields that should … … 665 665 * @since 1.6 666 666 * @see BP_XProfile_Group::get() 667 * @uses apply_filters() Filter bp_xprofile_get_hidden_fields_for_user to modify privacy levels,667 * @uses apply_filters() Filter bp_xprofile_get_hidden_fields_for_user to modify visibility levels, 668 668 * or if you have added your own custom levels 669 669 * … … 700 700 // current user is logged-in but not friends, so exclude friends-only 701 701 $hidden_levels = array( 'friends' ); 702 $hidden_fields = bp_xprofile_get_fields_by_ privacy_levels( $displayed_user_id, $hidden_levels );702 $hidden_fields = bp_xprofile_get_fields_by_visibility_levels( $displayed_user_id, $hidden_levels ); 703 703 } 704 704 … … 706 706 // Current user is not logged in, so exclude friends-only and loggedin 707 707 $hidden_levels = array( 'friends', 'loggedin' ); 708 $hidden_fields = bp_xprofile_get_fields_by_ privacy_levels( $displayed_user_id, $hidden_levels );708 $hidden_fields = bp_xprofile_get_fields_by_visibility_levels( $displayed_user_id, $hidden_levels ); 709 709 } 710 710 … … 713 713 714 714 /** 715 * Fetch an array of the xprofile fields that a given user has marked with certain privacy levels715 * Fetch an array of the xprofile fields that a given user has marked with certain visibility levels 716 716 * 717 717 * @since 1.6 … … 719 719 * 720 720 * @param int $user_id The id of the profile owner 721 * @param array $levels An array of privacy levels ('public', 'friends', 'loggedin', etc) to be721 * @param array $levels An array of visibility levels ('public', 'friends', 'loggedin', etc) to be 722 722 * checked against 723 * @return array $field_ids The fields that match the requested privacy levels for the given user724 */ 725 function bp_xprofile_get_fields_by_ privacy_levels( $user_id, $levels = array() ) {723 * @return array $field_ids The fields that match the requested visibility levels for the given user 724 */ 725 function bp_xprofile_get_fields_by_visibility_levels( $user_id, $levels = array() ) { 726 726 if ( !is_array( $levels ) ) { 727 727 $levels = (array)$levels; 728 728 } 729 729 730 $user_ privacy_levels = get_user_meta( $user_id, 'bp_xprofile_privacy_levels', true );730 $user_visibility_levels = get_user_meta( $user_id, 'bp_xprofile_visibility_levels', true ); 731 731 732 732 $field_ids = array(); 733 foreach( (array)$user_ privacy_levels as $field_id => $field_privacy ) {734 if ( in_array( $field_ privacy, $levels ) ) {733 foreach( (array)$user_visibility_levels as $field_id => $field_visibility ) { 734 if ( in_array( $field_visibility, $levels ) ) { 735 735 $field_ids[] = $field_id; 736 736 } -
trunk/bp-xprofile/bp-xprofile-loader.php
r5789 r5792 16 16 class BP_XProfile_Component extends BP_Component { 17 17 /** 18 * The acceptable privacy levels for xprofile fields.18 * The acceptable visibility levels for xprofile fields. 19 19 * @since 1.6 20 * @see bp_xprofile_get_ privacy_levels()21 */ 22 var $ privacy_levels = array();20 * @see bp_xprofile_get_visibility_levels() 21 */ 22 var $visibility_levels = array(); 23 23 24 24 /** … … 90 90 ) ); 91 91 92 // Register the privacy levels. See bp_xprofile_get_privacy_levels() to filter93 $this-> privacy_levels = array(92 // Register the visibility levels. See bp_xprofile_get_visibility_levels() to filter 93 $this->visibility_levels = array( 94 94 'public' => array( 95 95 'id' => 'public', … … 103 103 104 104 if ( bp_is_active( 'friends' ) ) { 105 $this-> privacy_levels['friends'] = array(105 $this->visibility_levels['friends'] = array( 106 106 'id' => 'friends', 107 107 'label' => __( 'My Friends', 'buddypress' ) -
trunk/bp-xprofile/bp-xprofile-screens.php
r5789 r5792 115 115 do_action( 'xprofile_profile_field_data_updated', $field_id, $value ); 116 116 117 // Save the privacy level118 $ privacy_level = !empty( $_POST['field_' . $field_id . '_privacy'] ) ? $_POST['field_' . $field_id . '_privacy'] : 'public';119 xprofile_set_field_ privacy_level( $field_id, bp_displayed_user_id(), $privacy_level );117 // Save the visibility level 118 $visibility_level = !empty( $_POST['field_' . $field_id . '_visibility'] ) ? $_POST['field_' . $field_id . '_visibility'] : 'public'; 119 xprofile_set_field_visibility_level( $field_id, bp_displayed_user_id(), $visibility_level ); 120 120 } 121 121 -
trunk/bp-xprofile/bp-xprofile-template.php
r5789 r5792 25 25 var $user_id; 26 26 27 function __construct( $user_id, $profile_group_id, $hide_empty_groups = false, $fetch_fields = false, $fetch_field_data = false, $exclude_groups = false, $exclude_fields = false, $hide_empty_fields = false, $fetch_ privacy_level = false ) {27 function __construct( $user_id, $profile_group_id, $hide_empty_groups = false, $fetch_fields = false, $fetch_field_data = false, $exclude_groups = false, $exclude_fields = false, $hide_empty_fields = false, $fetch_visibility_level = false ) { 28 28 $this->groups = BP_XProfile_Group::get( array( 29 29 'profile_group_id' => $profile_group_id, … … 33 33 'fetch_fields' => $fetch_fields, 34 34 'fetch_field_data' => $fetch_field_data, 35 'fetch_ privacy_level' => $fetch_privacy_level,35 'fetch_visibility_level' => $fetch_visibility_level, 36 36 'exclude_groups' => $exclude_groups, 37 37 'exclude_fields' => $exclude_fields … … 159 159 $hide_empty_fields_default = ( !is_network_admin() && !is_admin() && !bp_is_user_profile_edit() && !bp_is_register_page() ); 160 160 161 // We only need to fetch privacy levels when viewing your own profile161 // We only need to fetch visibility levels when viewing your own profile 162 162 if ( bp_is_my_profile() || bp_current_user_can( 'bp_moderate' ) ) { 163 $fetch_ privacy_level_default = true;163 $fetch_visibility_level_default = true; 164 164 } else { 165 $fetch_ privacy_level_default = false;165 $fetch_visibility_level_default = false; 166 166 } 167 167 … … 173 173 'fetch_fields' => true, 174 174 'fetch_field_data' => true, 175 'fetch_ privacy_level' => $fetch_privacy_level_default,175 'fetch_visibility_level' => $fetch_visibility_level_default, 176 176 'exclude_groups' => false, // Comma-separated list of profile field group IDs to exclude 177 177 'exclude_fields' => false // Comma-separated list of profile field IDs to exclude … … 181 181 extract( $r, EXTR_SKIP ); 182 182 183 $profile_template = new BP_XProfile_Data_Template( $user_id, $profile_group_id, $hide_empty_groups, $fetch_fields, $fetch_field_data, $exclude_groups, $exclude_fields, $hide_empty_fields, $fetch_ privacy_level );183 $profile_template = new BP_XProfile_Data_Template( $user_id, $profile_group_id, $hide_empty_groups, $fetch_fields, $fetch_field_data, $exclude_groups, $exclude_fields, $hide_empty_fields, $fetch_visibility_level ); 184 184 return apply_filters( 'bp_has_profile', $profile_template->has_groups(), $profile_template ); 185 185 } … … 708 708 709 709 /** 710 * Echo the privacy level of this field710 * Echo the visibility level of this field 711 711 */ 712 function bp_the_profile_field_ privacy_level() {713 echo bp_get_the_profile_field_ privacy_level();712 function bp_the_profile_field_visibility_level() { 713 echo bp_get_the_profile_field_visibility_level(); 714 714 } 715 715 /** 716 * Return the privacy level of this field716 * Return the visibility level of this field 717 717 */ 718 function bp_get_the_profile_field_ privacy_level() {718 function bp_get_the_profile_field_visibility_level() { 719 719 global $field; 720 720 721 $retval = !empty( $field-> privacy_level ) ? $field->privacy_level : 'public';721 $retval = !empty( $field->visibility_level ) ? $field->visibility_level : 'public'; 722 722 723 return apply_filters( 'bp_get_the_profile_field_ privacy_level', $retval );723 return apply_filters( 'bp_get_the_profile_field_visibility_level', $retval ); 724 724 } 725 725 726 726 /** 727 * Echo the privacy level label of this field727 * Echo the visibility level label of this field 728 728 */ 729 function bp_the_profile_field_ privacy_level_label() {730 echo bp_get_the_profile_field_ privacy_level_label();729 function bp_the_profile_field_visibility_level_label() { 730 echo bp_get_the_profile_field_visibility_level_label(); 731 731 } 732 732 /** 733 * Return the privacy level label of this field733 * Return the visibility level label of this field 734 734 */ 735 function bp_get_the_profile_field_ privacy_level_label() {735 function bp_get_the_profile_field_visibility_level_label() { 736 736 global $field; 737 737 738 $level = !empty( $field-> privacy_level ) ? $field->privacy_level : 'public';739 $fields = bp_xprofile_get_ privacy_levels();738 $level = !empty( $field->visibility_level ) ? $field->visibility_level : 'public'; 739 $fields = bp_xprofile_get_visibility_levels(); 740 740 741 return apply_filters( 'bp_get_the_profile_field_ privacy_level_label', $fields[$level]['label'] );741 return apply_filters( 'bp_get_the_profile_field_visibility_level_label', $fields[$level]['label'] ); 742 742 } 743 743 … … 886 886 887 887 /** 888 * Echo the field privacy radio buttons888 * Echo the field visibility radio buttons 889 889 */ 890 function bp_profile_ privacy_radio_buttons() {891 echo bp_profile_get_ privacy_radio_buttons();890 function bp_profile_visibility_radio_buttons() { 891 echo bp_profile_get_visibility_radio_buttons(); 892 892 } 893 893 /** 894 * Return the field privacy radio buttons894 * Return the field visibility radio buttons 895 895 */ 896 function bp_profile_get_ privacy_radio_buttons() {896 function bp_profile_get_visibility_radio_buttons() { 897 897 $html = '<ul class="radio">'; 898 898 899 foreach( bp_xprofile_get_ privacy_levels() as $level ) {900 $checked = $level['id'] == bp_get_the_profile_field_ privacy_level() ? ' checked="checked" ' : '';899 foreach( bp_xprofile_get_visibility_levels() as $level ) { 900 $checked = $level['id'] == bp_get_the_profile_field_visibility_level() ? ' checked="checked" ' : ''; 901 901 902 $html .= '<li><input type="radio" name="field_' . bp_get_the_profile_field_id() . '_ privacy" value="' . esc_attr( $level['id'] ) . '"' . $checked . '> ' . esc_html( $level['label'] ) . '</li>';902 $html .= '<li><input type="radio" name="field_' . bp_get_the_profile_field_id() . '_visibility" value="' . esc_attr( $level['id'] ) . '"' . $checked . '> ' . esc_html( $level['label'] ) . '</li>'; 903 903 } 904 904 905 905 $html .= '</ul>'; 906 906 907 return apply_filters( 'bp_profile_get_ privacy_radio_buttons', $html );907 return apply_filters( 'bp_profile_get_visibility_radio_buttons', $html ); 908 908 } 909 909 ?>
Note: See TracChangeset
for help on using the changeset viewer.