From b5cdc60beb9b9380cc09171c8760188ed7365d9b Mon Sep 17 00:00:00 2001 From: Dougal Campbell Date: Thu, 20 May 2004 13:31:48 +0000 Subject: [PATCH] Removed and eradicated redundant duplication. And fixed indentation. git-svn-id: https://develop.svn.wordpress.org/trunk@1327 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/functions.php | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/wp-includes/functions.php b/wp-includes/functions.php index 119fa7f974..d166e05496 100644 --- a/wp-includes/functions.php +++ b/wp-includes/functions.php @@ -175,11 +175,9 @@ function get_userdata($userid) { global $wpdb, $cache_userdata, $tableusers; if ( empty($cache_userdata[$userid]) ) { $user = $wpdb->get_row("SELECT * FROM $tableusers WHERE ID = '$userid'"); - $user->user_nickname = stripslashes($user->user_nickname); - $user->user_firstname = stripslashes($user->user_firstname); - $user->user_lastname = stripslashes($user->user_lastname); - $user->user_firstname = stripslashes($user->user_firstname); - $user->user_lastname = stripslashes($user->user_lastname); + $user->user_nickname = stripslashes($user->user_nickname); + $user->user_firstname = stripslashes($user->user_firstname); + $user->user_lastname = stripslashes($user->user_lastname); $user->user_description = stripslashes($user->user_description); $cache_userdata[$userid] = $user; } else {