Changeset 10163 for trunk/src/bp-xprofile/bp-xprofile-settings.php
- Timestamp:
- 10/01/2015 04:18:13 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-xprofile/bp-xprofile-settings.php
r10140 r10163 11 11 12 12 /** 13 * Query all profile fields and their visibility data for display in settings 13 * Query all profile fields and their visibility data for display in settings. 14 14 * 15 15 * @since 2.0.0 16 16 * 17 * @param array $args17 * @param array|string $args Array of args for the settings fields. 18 18 * 19 19 * @return array … … 21 21 function bp_xprofile_get_settings_fields( $args = '' ) { 22 22 23 // Parse the possible arguments 23 // Parse the possible arguments. 24 24 $r = bp_parse_args( $args, array( 25 25 'user_id' => bp_displayed_user_id(), … … 38 38 39 39 /** 40 * Adds feedback messages when successfully saving profile field settings 40 * Adds feedback messages when successfully saving profile field settings. 41 41 * 42 42 * @since 2.0.0 … … 47 47 function bp_xprofile_settings_add_feedback_message() { 48 48 49 // Default message type is success 49 // Default message type is success. 50 50 $type = 'success'; 51 51 $message = __( 'Your profile settings have been saved.', 'buddypress' ); 52 52 53 // Community moderator editing another user's settings 53 // Community moderator editing another user's settings. 54 54 if ( ! bp_is_my_profile() && bp_core_can_edit_settings() ) { 55 55 $message = __( "This member's profile settings have been saved.", 'buddypress' ); 56 56 } 57 57 58 // Add the message 58 // Add the message. 59 59 bp_core_add_message( $message, $type ); 60 60 }
Note: See TracChangeset
for help on using the changeset viewer.