Changeset 10857 for trunk/src/bp-xprofile/bp-xprofile-functions.php
- Timestamp:
- 06/01/2016 08:32:46 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-xprofile/bp-xprofile-functions.php
r10825 r10857 828 828 bp_update_user_meta( $user_id, 'last_name', $lastname ); 829 829 830 global $wpdb; 831 832 $wpdb->query( $wpdb->prepare( "UPDATE {$wpdb->users} SET display_name = %s WHERE ID = %d", $fullname, $user_id ) ); 830 wp_update_user( array( 'ID' => $user_id, 'display_name' => $fullname ) ); 831 wp_cache_delete( 'bp_core_userdata_' . $user_id, 'bp' ); 833 832 } 834 833 add_action( 'xprofile_updated_profile', 'xprofile_sync_wp_profile' );
Note: See TracChangeset
for help on using the changeset viewer.