Changeset 17032 for trunk/wp-includes/user.php
- Timestamp:
- 12/17/2010 09:48:30 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/user.php
r17024 r17032 508 508 $ids = implode( ',', wp_parse_id_list( $qv['include'] ) ); 509 509 $this->query_where .= " AND $wpdb->users.ID IN ($ids)"; 510 } 511 elseif ( !empty($qv['exclude']) ) { 510 } elseif ( !empty($qv['exclude']) ) { 512 511 $ids = implode( ',', wp_parse_id_list( $qv['exclude'] ) ); 513 512 $this->query_where .= " AND $wpdb->users.ID NOT IN ($ids)"; … … 1447 1446 if ( empty($user_registered) ) 1448 1447 $user_registered = gmdate('Y-m-d H:i:s'); 1448 1449 if ( empty($show_admin_bar_front) ) 1450 $show_admin_bar_front = 'true'; 1451 1452 if ( empty($show_admin_bar_admin) ) 1453 $show_admin_bar_admin = is_multisite() ? 'true' : 'false'; 1449 1454 1450 1455 $user_nicename_check = $wpdb->get_var( $wpdb->prepare("SELECT ID FROM $wpdb->users WHERE user_nicename = %s AND user_login != %s LIMIT 1" , $user_nicename, $user_login)); … … 1471 1476 } 1472 1477 1473 update_user_meta( $user_id, 'first_name', $first_name );1474 update_user_meta( $user_id, 'last_name', $last_name );1478 update_user_meta( $user_id, 'first_name', $first_name ); 1479 update_user_meta( $user_id, 'last_name', $last_name ); 1475 1480 update_user_meta( $user_id, 'nickname', $nickname ); 1476 1481 update_user_meta( $user_id, 'description', $description ); 1477 update_user_meta( $user_id, 'rich_editing', $rich_editing); 1478 update_user_meta( $user_id, 'comment_shortcuts', $comment_shortcuts); 1479 update_user_meta( $user_id, 'admin_color', $admin_color); 1480 update_user_meta( $user_id, 'use_ssl', $use_ssl); 1482 update_user_meta( $user_id, 'rich_editing', $rich_editing ); 1483 update_user_meta( $user_id, 'comment_shortcuts', $comment_shortcuts ); 1484 update_user_meta( $user_id, 'admin_color', $admin_color ); 1485 update_user_meta( $user_id, 'use_ssl', $use_ssl ); 1486 update_user_meta( $user_id, 'show_admin_bar_front', $show_admin_bar_front ); 1487 update_user_meta( $user_id, 'show_admin_bar_admin', $show_admin_bar_admin ); 1481 1488 1482 1489 $user = new WP_User($user_id);
Note: See TracChangeset
for help on using the changeset viewer.