mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-01 19:24:34 +00:00
More cookie catchups
git-svn-id: https://develop.svn.wordpress.org/trunk@2726 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -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'");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user