Make WordPress Core


Ignore:
Timestamp:
09/14/2009 01:57:48 PM (15 years ago)
Author:
ryan
Message:

Filter fields through kses upon display. Introduce sanitize_user_object() and sanitize_user_field(). see #10751

File:
1 edited

Legend:

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

    r11852 r11929  
    170170    $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));
    171171
    172     if ($user_nicename_check) {
     172    if ( $user_nicename_check ) {
    173173        $suffix = 2;
    174174        while ($user_nicename_check) {
     
    199199    update_usermeta( $user_id, 'admin_color', $admin_color);
    200200    update_usermeta( $user_id, 'use_ssl', $use_ssl);
    201     foreach (_wp_get_user_contactmethods() as $method => $name) {
     201
     202    foreach ( _wp_get_user_contactmethods() as $method => $name ) {
    202203        if ( empty($$method) )
    203204            $$method = '';
    204        
     205
    205206        update_usermeta( $user_id, $method, $$method );
    206207    }
Note: See TracChangeset for help on using the changeset viewer.