Changeset 7998 for trunk/bp-xprofile/bp-xprofile-screens.php
- Timestamp:
- 02/27/2014 07:51:28 PM (12 years ago)
- File:
-
- 1 edited
-
trunk/bp-xprofile/bp-xprofile-screens.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-xprofile/bp-xprofile-screens.php
r7960 r7998 103 103 104 104 // Now we've checked for required fields, lets save the values. 105 $old_values = $new_values = array(); 105 106 foreach ( (array) $posted_field_ids as $field_id ) { 106 107 … … 121 122 $visibility_level = !empty( $_POST['field_' . $field_id . '_visibility'] ) ? $_POST['field_' . $field_id . '_visibility'] : 'public'; 122 123 xprofile_set_field_visibility_level( $field_id, bp_displayed_user_id(), $visibility_level ); 123 } 124 125 do_action( 'xprofile_updated_profile', bp_displayed_user_id(), $posted_field_ids, $errors ); 124 125 // Save the old and new values. They will be 126 // passed to the filter and used to determine 127 // whether an activity item should be posted 128 $old_values[ $field_id ] = array( 129 'value' => xprofile_get_field_data( $field_id, bp_displayed_user_id() ), 130 'visibility' => xprofile_get_field_visibility_level( $field_id, bp_displayed_user_id() ), 131 ); 132 $new_values[ $field_id ] = array( 133 'value' => $value, 134 'visibility' => $visibility_level, 135 ); 136 } 137 138 do_action( 'xprofile_updated_profile', bp_displayed_user_id(), $posted_field_ids, $errors, $old_values, $new_values ); 126 139 127 140 // Set the feedback messages
Note: See TracChangeset
for help on using the changeset viewer.