Skip to content

Commit

Permalink
Unserialize meta for User model
Browse files Browse the repository at this point in the history
  • Loading branch information
as247 committed Feb 29, 2024
1 parent 45a589e commit 2dea061
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/WpStarter/Wordpress/Model/User.php
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ protected function readMissingAttributes()
if($allMeta=get_user_meta($user_id)){
foreach ($allMeta as $key=>$values){
if(!isset($this->data->{$key})) {
$this->data->{$key} = $values[0];
$this->data->{$key} = maybe_unserialize($values[0]);
}
}
}
Expand Down

0 comments on commit 2dea061

Please sign in to comment.