diff -uNr buddypress-original/bp-members/bp-members-screens.php buddypress/bp-members/bp-members-screens.php
old
|
new
|
|
67 | 67 | return; |
68 | 68 | } |
69 | 69 | |
| 70 | $bp->signup = (object) $bp->signup; |
70 | 71 | $bp->signup->step = 'request-details'; |
71 | 72 | |
72 | 73 | if ( !bp_get_signup_allowed() ) { |
diff -uNr buddypress-original/bp-themes/bp-default/_inc/ajax.php buddypress/bp-themes/bp-default/_inc/ajax.php
old
|
new
|
|
326 | 326 | bp_has_activities( 'display_comments=stream&hide_spam=false&include=' . $comment_id ); |
327 | 327 | |
328 | 328 | // Swap the current comment with the activity item we just loaded |
| 329 | $activities_template->activity = (object) $activities_template->activity; |
329 | 330 | $activities_template->activity->id = $activities_template->activities[0]->item_id; |
330 | 331 | $activities_template->activity->current_comment = $activities_template->activities[0]; |
331 | 332 | |
diff -uNr buddypress-original/bp-xprofile/bp-xprofile-classes.php buddypress/bp-xprofile/bp-xprofile-classes.php
old
|
new
|
|
224 | 224 | |
225 | 225 | // Assign correct data value to the field |
226 | 226 | if ( $field->id == $data->field_id ) { |
| 227 | $fields[$field_key] = (object) $fields[$field_key]; |
227 | 228 | $fields[$field_key]->data->value = $data->value; |
228 | 229 | $fields[$field_key]->data->id = $data->id; |
229 | 230 | } |
diff -uNr buddypress-original/bp-xprofile/bp-xprofile-screens.php buddypress/bp-xprofile/bp-xprofile-screens.php
old
|
new
|
|
154 | 154 | return; |
155 | 155 | } |
156 | 156 | |
| 157 | $bp->avatar_admin = (object) $bp->avatar_admin; |
157 | 158 | $bp->avatar_admin->step = 'upload-image'; |
158 | 159 | |
159 | 160 | if ( !empty( $_FILES ) ) { |
diff -uNr buddypress-original/bp-xprofile/bp-xprofile-template.php buddypress/bp-xprofile/bp-xprofile-template.php
old
|
new
|
|
325 | 325 | function bp_get_the_profile_field_value() { |
326 | 326 | global $field; |
327 | 327 | |
| 328 | $field->data = (object) $field->data; |
328 | 329 | $field->data->value = bp_unserialize_profile_field( $field->data->value ); |
329 | 330 | |
330 | 331 | return apply_filters( 'bp_get_the_profile_field_value', $field->data->value, $field->type, $field->id ); |
… |
… |
|
341 | 342 | * value as long as it's not empty and a required field. |
342 | 343 | */ |
343 | 344 | if ( !isset( $field->data->value ) ) |
| 345 | $field->data = (object) $field->data; |
344 | 346 | $field->data->value = ''; |
345 | 347 | |
346 | 348 | if ( isset( $_POST['field_' . $field->id] ) && $field->data->value != $_POST['field_' . $field->id] ) { |