Skip to content

Commit

Permalink
change from full get_post object to post_content only
Browse files Browse the repository at this point in the history
  • Loading branch information
chen420 committed Oct 6, 2016
1 parent 4effc90 commit ec0a0c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tinywebdb.php
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ public static function getvalue($tagName) {
$tagValue = get_post($postid);
if (is_null($tagValue)) $tagValue = $bedtag; //reports a get_post failure
// $tagName = wp_tinywebdb_api_get_tagName($postid);
return $tagValue;
return $tagValue->post_content;
}

public static function storeavalue($tagName, $tagValue) {
Expand Down

0 comments on commit ec0a0c0

Please sign in to comment.