Remove unecessary reference to wpdb global. Fixes 11087 props aaroncampbell.
git-svn-id: https://develop.svn.wordpress.org/trunk@12147 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
f922806cf7
commit
9d48d02ab6
@ -283,7 +283,6 @@ function wp_update_user($userdata) {
|
||||
*
|
||||
* @since 2.0.0
|
||||
* @see wp_insert_user() More complete way to create a new user
|
||||
* @uses $wpdb Escapes $username and $email parameters
|
||||
*
|
||||
* @param string $username The user's username.
|
||||
* @param string $password The user's password.
|
||||
@ -291,8 +290,6 @@ function wp_update_user($userdata) {
|
||||
* @return int The new user's ID.
|
||||
*/
|
||||
function wp_create_user($username, $password, $email = '') {
|
||||
global $wpdb;
|
||||
|
||||
$user_login = esc_sql( $username );
|
||||
$user_email = esc_sql( $email );
|
||||
$user_pass = $password;
|
||||
|
Loading…
Reference in New Issue
Block a user