Skip to content

Commit

Permalink
Merge pull request #114 from wpstarter/dev
Browse files Browse the repository at this point in the history
Unserialize meta for User model
  • Loading branch information
as247 committed Feb 29, 2024
2 parents 149ae5a + 2e6cb34 commit 0fa1b2f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/WpStarter/Wordpress/Application.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class Application extends \WpStarter\Foundation\Application
*
* @var string
*/
const VERSION = '1.9.6';
const VERSION = '1.9.7';

protected $bootstrappedList = [];

Expand Down
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 0fa1b2f

Please sign in to comment.