From 9947a83ae2157bb9fdbca20d37133c8cc0a7831e Mon Sep 17 00:00:00 2001 From: ryan Date: Mon, 21 Nov 2005 08:23:08 +0000 Subject: [PATCH] Remove unused vars. Fixed var reference. git-svn-id: http://svn.automattic.com/wordpress/trunk@3176 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/admin-functions.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/wp-admin/admin-functions.php b/wp-admin/admin-functions.php index 36d3f5bb5e..12132f482d 100644 --- a/wp-admin/admin-functions.php +++ b/wp-admin/admin-functions.php @@ -350,8 +350,6 @@ function edit_user($user_id = 0) { } if (isset ($_POST['first_name'])) $user->first_name = wp_specialchars(trim($_POST['first_name'])); - if (isset ($_POST['middle_name'])) - $user->middle_name = wp_specialchars(trim($_POST['middle_name'])); if (isset ($_POST['last_name'])) $user->last_name = wp_specialchars(trim($_POST['last_name'])); if (isset ($_POST['nickname'])) @@ -366,8 +364,6 @@ function edit_user($user_id = 0) { $user->aim = wp_specialchars(trim($_POST['aim'])); if (isset ($_POST['yim'])) $user->yim = wp_specialchars(trim($_POST['yim'])); - if (isset ($_POST['flickr_username'])) - $user->flickr_username = wp_specialchars(trim($_POST['flickr_username'])); $errors = array (); @@ -397,7 +393,7 @@ function edit_user($user_id = 0) { if (!empty ($pass1)) $user->user_pass = $pass1; - if (!$update && username_exists($user_login)) + if (!$update && username_exists($user->user_login)) $errors['user_login'] = __('ERROR: This username is already registered, please choose another one.'); /* checking e-mail address */