Make WordPress Core


Ignore:
Timestamp:
12/17/2010 09:48:30 PM (14 years ago)
Author:
ryan
Message:

Admin bar visibility prefs. Props duck_. see #15829

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/user.php

    r17024 r17032  
    508508            $ids = implode( ',', wp_parse_id_list( $qv['include'] ) );
    509509            $this->query_where .= " AND $wpdb->users.ID IN ($ids)";
    510         }
    511         elseif ( !empty($qv['exclude']) ) {
     510        } elseif ( !empty($qv['exclude']) ) {
    512511            $ids = implode( ',', wp_parse_id_list( $qv['exclude'] ) );
    513512            $this->query_where .= " AND $wpdb->users.ID NOT IN ($ids)";
     
    14471446    if ( empty($user_registered) )
    14481447        $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';
    14491454
    14501455    $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));
     
    14711476    }
    14721477
    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 );
    14751480    update_user_meta( $user_id, 'nickname', $nickname );
    14761481    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 );
    14811488
    14821489    $user = new WP_User($user_id);
Note: See TracChangeset for help on using the changeset viewer.