Skip to content

Commit

Permalink
Merge pull request #130 from ataylorme/master
Browse files Browse the repository at this point in the history
Run meta data through maybe_unserialize()
  • Loading branch information
mAAdhaTTah committed Jan 30, 2016
2 parents 678b660 + 580ba63 commit a626540
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/post.php
Original file line number Diff line number Diff line change
Expand Up @@ -331,10 +331,10 @@ public function meta() {
'published' => 'publish' === $this->status() ? true : false,
);

//convert traditional post_meta values, hide hidden values
//convert traditional post_meta values, hide hidden values, skip already populated values
foreach ( get_post_custom( $this->id ) as $key => $value ) {

if ( '_' === substr( $key, 0, 1 ) ) {
if ( '_' === substr( $key, 0, 1 ) || isset( $meta[ $key ] ) ) {
continue;
}

Expand Down

0 comments on commit a626540

Please sign in to comment.