Revert part of [15703]. The Metadata API doesnt unserialize everything.

git-svn-id: http://svn.automattic.com/wordpress/trunk@15706 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
dd32 2010-10-04 11:00:36 +00:00
parent d9e1a542ee
commit bc41e93707
1 changed files with 2 additions and 1 deletions

View File

@ -1082,9 +1082,10 @@ function _fill_single_user( &$user, &$metavalues ) {
global $wpdb;
foreach ( $metavalues as $meta ) {
$value = maybe_unserialize($meta->meta_value);
// Keys used as object vars cannot have dashes.
$key = str_replace('-', '', $meta->meta_key);
$user->{$key} = $meta->meta_value;
$user->{$key} = $value;
}
$level = $wpdb->prefix . 'user_level';