More cookie catchups

git-svn-id: https://develop.svn.wordpress.org/trunk@2726 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Matt Mullenweg
2005-07-18 20:12:48 +00:00
parent 6d2fd52584
commit 3bb5555bb2
3 changed files with 10 additions and 10 deletions

View File

@@ -11,7 +11,7 @@ if (!function_exists('_')) {
function get_profile($field, $user = false) {
global $wpdb;
if (!$user)
$user = $wpdb->escape($_COOKIE['wordpressuser_' . COOKIEHASH]);
$user = $wpdb->escape($_COOKIE[USER_COOKIE]);
return $wpdb->get_var("SELECT $field FROM $wpdb->users WHERE user_login = '$user'");
}