Added stripslashes to get_userdata()
Reported on the support forums http://wordpress.org/support/3/376 git-svn-id: https://develop.svn.wordpress.org/trunk@271 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
cec7b1096f
commit
51395412e7
@ -415,7 +415,12 @@ function get_userdata($userid) {
|
||||
global $wpdb, $querycount, $cache_userdata, $use_cache, $tableusers;
|
||||
if ((empty($cache_userdata[$userid])) || (!$use_cache)) {
|
||||
$user = $wpdb->get_row("SELECT * FROM $tableusers WHERE ID = $userid");
|
||||
++$querycount;
|
||||
$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);
|
||||
++$querycount;
|
||||
$cache_userdata[$userid] = $user;
|
||||
} else {
|
||||
$user = $cache_userdata[$userid];
|
||||
|
Loading…
x
Reference in New Issue
Block a user