Make WordPress Core


Ignore:
Timestamp:
03/23/2007 12:59:21 AM (18 years ago)
Author:
matt
Message:

(int)er the dragon.

File:
1 edited

Legend:

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

    r4651 r5087  
    9090        $query = apply_filters('update_user_query', $query);
    9191        $wpdb->query( $query );
    92         $user_id = $ID;
     92        $user_id = (int) $ID;
    9393    } else {
    9494        $query = "INSERT INTO $wpdb->users
     
    9898        $query = apply_filters('create_user_query', $query);
    9999        $wpdb->query( $query );
    100         $user_id = $wpdb->insert_id;
     100        $user_id = (int) $wpdb->insert_id;
    101101    }
    102102
Note: See TracChangeset for help on using the changeset viewer.