mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-16 14:50:29 +00:00
Make it much easier to filter contact methods from user profiles adding and removing at will. Fixes #10240 props joostdevalk.
git-svn-id: https://develop.svn.wordpress.org/trunk@11784 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -164,15 +164,6 @@ function wp_insert_user($userdata) {
|
||||
if ( empty($use_ssl) )
|
||||
$use_ssl = 0;
|
||||
|
||||
if ( empty($jabber) )
|
||||
$jabber = '';
|
||||
|
||||
if ( empty($aim) )
|
||||
$aim = '';
|
||||
|
||||
if ( empty($yim) )
|
||||
$yim = '';
|
||||
|
||||
if ( empty($user_registered) )
|
||||
$user_registered = gmdate('Y-m-d H:i:s');
|
||||
|
||||
@@ -203,13 +194,16 @@ function wp_insert_user($userdata) {
|
||||
update_usermeta( $user_id, 'last_name', $last_name);
|
||||
update_usermeta( $user_id, 'nickname', $nickname );
|
||||
update_usermeta( $user_id, 'description', $description );
|
||||
update_usermeta( $user_id, 'jabber', $jabber );
|
||||
update_usermeta( $user_id, 'aim', $aim );
|
||||
update_usermeta( $user_id, 'yim', $yim );
|
||||
update_usermeta( $user_id, 'rich_editing', $rich_editing);
|
||||
update_usermeta( $user_id, 'comment_shortcuts', $comment_shortcuts);
|
||||
update_usermeta( $user_id, 'admin_color', $admin_color);
|
||||
update_usermeta( $user_id, 'use_ssl', $use_ssl);
|
||||
foreach (_wp_get_user_contactmethods() as $method => $name) {
|
||||
if ( empty($$method) )
|
||||
$$method = '';
|
||||
|
||||
update_usermeta( $user_id, $method, $$method );
|
||||
}
|
||||
|
||||
if ( isset($role) ) {
|
||||
$user = new WP_User($user_id);
|
||||
|
||||
Reference in New Issue
Block a user