Skip to content

Commit 0fa1b2f

Browse files
authored
Merge pull request #114 from wpstarter/dev
Unserialize meta for User model
2 parents 149ae5a + 2e6cb34 commit 0fa1b2f

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/WpStarter/Wordpress/Application.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class Application extends \WpStarter\Foundation\Application
1111
*
1212
* @var string
1313
*/
14-
const VERSION = '1.9.6';
14+
const VERSION = '1.9.7';
1515

1616
protected $bootstrappedList = [];
1717

src/WpStarter/Wordpress/Model/User.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ protected function readMissingAttributes()
120120
if($allMeta=get_user_meta($user_id)){
121121
foreach ($allMeta as $key=>$values){
122122
if(!isset($this->data->{$key})) {
123-
$this->data->{$key} = $values[0];
123+
$this->data->{$key} = maybe_unserialize($values[0]);
124124
}
125125
}
126126
}

0 commit comments

Comments
 (0)