WordPress.org

Make WordPress Core

Ticket #11087: 11087.001.diff

File 11087.001.diff, 714 bytes (added by aaroncampbell, 9 years ago)
  • wp-includes/registration.php

     
    283283 *
    284284 * @since 2.0.0
    285285 * @see wp_insert_user() More complete way to create a new user
    286  * @uses $wpdb Escapes $username and $email parameters
    287286 *
    288287 * @param string $username The user's username.
    289288 * @param string $password The user's password.
     
    291290 * @return int The new user's ID.
    292291 */
    293292function wp_create_user($username, $password, $email = '') {
    294         global $wpdb;
    295 
    296293        $user_login = esc_sql( $username );
    297294        $user_email = esc_sql( $email    );
    298295        $user_pass = $password;