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:
parent
d9e1a542ee
commit
bc41e93707
|
@ -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';
|
||||
|
|
Loading…
Reference in New Issue