Skip to content
This repository was archived by the owner on Feb 1, 2019. It is now read-only.

Commit 19950e8

Browse files
author
your-user-name
committed
Add GUID to output for Disqus identifier
1 parent ccf108a commit 19950e8

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

models/post.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ class JSON_API_Post {
66
// JSON_API_Post objects must be instantiated within The Loop.
77

88
var $id; // Integer
9+
var $guid; // String
910
var $type; // String
1011
var $slug; // String
1112
var $url; // String
@@ -130,6 +131,7 @@ function import_wp_object($wp_post) {
130131
$date_format = $json_api->query->date_format;
131132
$relative_url = parse_url( get_permalink( get_the_ID() ) );
132133
$this->id = (int) $wp_post->ID;
134+
$this->guid = $wp_post->guid;
133135
setup_postdata($wp_post);
134136
$this->set_value('type', $wp_post->post_type);
135137
$this->set_value('slug', $wp_post->post_name);

0 commit comments

Comments
 (0)