{"action":"created","comment":{"url":"https://api.github.com/repos/WP-API/WP-API/pulls/comments/24493004","id":24493004,"diff_hunk":"@@ -68,6 +70,8 @@ public function get_item( $request ) {\n \t\t\treturn new WP_Error( 'json_post_invalid_id', __( 'Invalid post ID.' ), array( 'status' => 404 ) );\n \t\t}\n \n+\t\tsetup_postdata( $post );","path":"lib/class-wp-json-base-posts-controller.php","position":13,"original_position":13,"commit_id":"92ac0204c6390a2838f0db66b1a952eb99af87f9","original_commit_id":"92ac0204c6390a2838f0db66b1a952eb99af87f9","user":{"login":"rmccue","id":21655,"avatar_url":"https://avatars.githubusercontent.com/u/21655?v=3","gravatar_id":"","url":"https://api.github.com/users/rmccue","html_url":"https://github.com/rmccue","followers_url":"https://api.github.com/users/rmccue/followers","following_url":"https://api.github.com/users/rmccue/following{/other_user}","gists_url":"https://api.github.com/users/rmccue/gists{/gist_id}","starred_url":"https://api.github.com/users/rmccue/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rmccue/subscriptions","organizations_url":"https://api.github.com/users/rmccue/orgs","repos_url":"https://api.github.com/users/rmccue/repos","events_url":"https://api.github.com/users/rmccue/events{/privacy}","received_events_url":"https://api.github.com/users/rmccue/received_events","type":"User","site_admin":false},"body":"If we set this up here, we need to ensure we restore it afterwards. We're already doing that inside `prepare_item_for_response`, do we need it here too?","created_at":"2015-02-11T13:07:00Z","updated_at":"2015-02-11T13:07:00Z","html_url":"https://github.com/WP-API/WP-API/pull/746#discussion_r24493004","pull_request_url":"https://api.github.com/repos/WP-API/WP-API/pulls/746","_links":{"self":{"href":"https://api.github.com/repos/WP-API/WP-API/pulls/comments/24493004"},"html":{"href":"https://github.com/WP-API/WP-API/pull/746#discussion_r24493004"},"pull_request":{"href":"https://api.github.com/repos/WP-API/WP-API/pulls/746"}}},"pull_request":{"url":"https://api.github.com/repos/WP-API/WP-API/pulls/746","id":26617537,"html_url":"https://github.com/WP-API/WP-API/pull/746","diff_url":"https://github.com/WP-API/WP-API/pull/746.diff","patch_url":"https://github.com/WP-API/WP-API/pull/746.patch","issue_url":"https://api.github.com/repos/WP-API/WP-API/issues/746","number":746,"state":"open","locked":false,"title":"Let the title, content and excerpt be empty","user":{"login":"iseulde","id":4710635,"avatar_url":"https://avatars.githubusercontent.com/u/4710635?v=3","gravatar_id":"","url":"https://api.github.com/users/iseulde","html_url":"https://github.com/iseulde","followers_url":"https://api.github.com/users/iseulde/followers","following_url":"https://api.github.com/users/iseulde/following{/other_user}","gists_url":"https://api.github.com/users/iseulde/gists{/gist_id}","starred_url":"https://api.github.com/users/iseulde/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iseulde/subscriptions","organizations_url":"https://api.github.com/users/iseulde/orgs","repos_url":"https://api.github.com/users/iseulde/repos","events_url":"https://api.github.com/users/iseulde/events{/privacy}","received_events_url":"https://api.github.com/users/iseulde/received_events","type":"User","site_admin":false},"body":"Fixes #745. Brings up another issue with the excerpt...","created_at":"2014-12-27T20:00:34Z","updated_at":"2015-02-11T13:07:00Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0d03ef03052e76a022bb54bc21d9f25e22d342cb","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/WP-API/WP-API/pulls/746/commits","review_comments_url":"https://api.github.com/repos/WP-API/WP-API/pulls/746/comments","review_comment_url":"https://api.github.com/repos/WP-API/WP-API/pulls/comments/{number}","comments_url":"https://api.github.com/repos/WP-API/WP-API/issues/746/comments","statuses_url":"https://api.github.com/repos/WP-API/WP-API/statuses/92ac0204c6390a2838f0db66b1a952eb99af87f9","head":{"label":"iseulde:fix-745","ref":"fix-745","sha":"92ac0204c6390a2838f0db66b1a952eb99af87f9","user":{"login":"iseulde","id":4710635,"avatar_url":"https://avatars.githubusercontent.com/u/4710635?v=3","gravatar_id":"","url":"https://api.github.com/users/iseulde","html_url":"https://github.com/iseulde","followers_url":"https://api.github.com/users/iseulde/followers","following_url":"https://api.github.com/users/iseulde/following{/other_user}","gists_url":"https://api.github.com/users/iseulde/gists{/gist_id}","starred_url":"https://api.github.com/users/iseulde/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iseulde/subscriptions","organizations_url":"https://api.github.com/users/iseulde/orgs","repos_url":"https://api.github.com/users/iseulde/repos","events_url":"https://api.github.com/users/iseulde/events{/privacy}","received_events_url":"https://api.github.com/users/iseulde/received_events","type":"User","site_admin":false},"repo":{"id":28317004,"name":"WP-API","full_name":"iseulde/WP-API","owner":{"login":"iseulde","id":4710635,"avatar_url":"https://avatars.githubusercontent.com/u/4710635?v=3","gravatar_id":"","url":"https://api.github.com/users/iseulde","html_url":"https://github.com/iseulde","followers_url":"https://api.github.com/users/iseulde/followers","following_url":"https://api.github.com/users/iseulde/following{/other_user}","gists_url":"https://api.github.com/users/iseulde/gists{/gist_id}","starred_url":"https://api.github.com/users/iseulde/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iseulde/subscriptions","organizations_url":"https://api.github.com/users/iseulde/orgs","repos_url":"https://api.github.com/users/iseulde/repos","events_url":"https://api.github.com/users/iseulde/events{/privacy}","received_events_url":"https://api.github.com/users/iseulde/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/iseulde/WP-API","description":"A JSON-based REST API for WordPress","fork":true,"url":"https://api.github.com/repos/iseulde/WP-API","forks_url":"https://api.github.com/repos/iseulde/WP-API/forks","keys_url":"https://api.github.com/repos/iseulde/WP-API/keys{/key_id}","collaborators_url":"https://api.github.com/repos/iseulde/WP-API/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/iseulde/WP-API/teams","hooks_url":"https://api.github.com/repos/iseulde/WP-API/hooks","issue_events_url":"https://api.github.com/repos/iseulde/WP-API/issues/events{/number}","events_url":"https://api.github.com/repos/iseulde/WP-API/events","assignees_url":"https://api.github.com/repos/iseulde/WP-API/assignees{/user}","branches_url":"https://api.github.com/repos/iseulde/WP-API/branches{/branch}","tags_url":"https://api.github.com/repos/iseulde/WP-API/tags","blobs_url":"https://api.github.com/repos/iseulde/WP-API/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/iseulde/WP-API/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/iseulde/WP-API/git/refs{/sha}","trees_url":"https://api.github.com/repos/iseulde/WP-API/git/trees{/sha}","statuses_url":"https://api.github.com/repos/iseulde/WP-API/statuses/{sha}","languages_url":"https://api.github.com/repos/iseulde/WP-API/languages","stargazers_url":"https://api.github.com/repos/iseulde/WP-API/stargazers","contributors_url":"https://api.github.com/repos/iseulde/WP-API/contributors","subscribers_url":"https://api.github.com/repos/iseulde/WP-API/subscribers","subscription_url":"https://api.github.com/repos/iseulde/WP-API/subscription","commits_url":"https://api.github.com/repos/iseulde/WP-API/commits{/sha}","git_commits_url":"https://api.github.com/repos/iseulde/WP-API/git/commits{/sha}","comments_url":"https://api.github.com/repos/iseulde/WP-API/comments{/number}","issue_comment_url":"https://api.github.com/repos/iseulde/WP-API/issues/comments/{number}","contents_url":"https://api.github.com/repos/iseulde/WP-API/contents/{+path}","compare_url":"https://api.github.com/repos/iseulde/WP-API/compare/{base}...{head}","merges_url":"https://api.github.com/repos/iseulde/WP-API/merges","archive_url":"https://api.github.com/repos/iseulde/WP-API/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/iseulde/WP-API/downloads","issues_url":"https://api.github.com/repos/iseulde/WP-API/issues{/number}","pulls_url":"https://api.github.com/repos/iseulde/WP-API/pulls{/number}","milestones_url":"https://api.github.com/repos/iseulde/WP-API/milestones{/number}","notifications_url":"https://api.github.com/repos/iseulde/WP-API/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/iseulde/WP-API/labels{/name}","releases_url":"https://api.github.com/repos/iseulde/WP-API/releases{/id}","created_at":"2014-12-21T23:20:30Z","updated_at":"2015-01-13T22:16:09Z","pushed_at":"2015-01-13T22:16:08Z","git_url":"git://github.com/iseulde/WP-API.git","ssh_url":"git@github.com:iseulde/WP-API.git","clone_url":"https://github.com/iseulde/WP-API.git","svn_url":"https://github.com/iseulde/WP-API","homepage":null,"size":1720,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"develop"}},"base":{"label":"WP-API:develop","ref":"develop","sha":"35af11396333558de9ee71010dc9f272fc17da19","user":{"login":"WP-API","id":5706008,"avatar_url":"https://avatars.githubusercontent.com/u/5706008?v=3","gravatar_id":"","url":"https://api.github.com/users/WP-API","html_url":"https://github.com/WP-API","followers_url":"https://api.github.com/users/WP-API/followers","following_url":"https://api.github.com/users/WP-API/following{/other_user}","gists_url":"https://api.github.com/users/WP-API/gists{/gist_id}","starred_url":"https://api.github.com/users/WP-API/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WP-API/subscriptions","organizations_url":"https://api.github.com/users/WP-API/orgs","repos_url":"https://api.github.com/users/WP-API/repos","events_url":"https://api.github.com/users/WP-API/events{/privacy}","received_events_url":"https://api.github.com/users/WP-API/received_events","type":"Organization","site_admin":false},"repo":{"id":10420996,"name":"WP-API","full_name":"WP-API/WP-API","owner":{"login":"WP-API","id":5706008,"avatar_url":"https://avatars.githubusercontent.com/u/5706008?v=3","gravatar_id":"","url":"https://api.github.com/users/WP-API","html_url":"https://github.com/WP-API","followers_url":"https://api.github.com/users/WP-API/followers","following_url":"https://api.github.com/users/WP-API/following{/other_user}","gists_url":"https://api.github.com/users/WP-API/gists{/gist_id}","starred_url":"https://api.github.com/users/WP-API/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WP-API/subscriptions","organizations_url":"https://api.github.com/users/WP-API/orgs","repos_url":"https://api.github.com/users/WP-API/repos","events_url":"https://api.github.com/users/WP-API/events{/privacy}","received_events_url":"https://api.github.com/users/WP-API/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/WP-API/WP-API","description":"A JSON-based REST API for WordPress","fork":false,"url":"https://api.github.com/repos/WP-API/WP-API","forks_url":"https://api.github.com/repos/WP-API/WP-API/forks","keys_url":"https://api.github.com/repos/WP-API/WP-API/keys{/key_id}","collaborators_url":"https://api.github.com/repos/WP-API/WP-API/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/WP-API/WP-API/teams","hooks_url":"https://api.github.com/repos/WP-API/WP-API/hooks","issue_events_url":"https://api.github.com/repos/WP-API/WP-API/issues/events{/number}","events_url":"https://api.github.com/repos/WP-API/WP-API/events","assignees_url":"https://api.github.com/repos/WP-API/WP-API/assignees{/user}","branches_url":"https://api.github.com/repos/WP-API/WP-API/branches{/branch}","tags_url":"https://api.github.com/repos/WP-API/WP-API/tags","blobs_url":"https://api.github.com/repos/WP-API/WP-API/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/WP-API/WP-API/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/WP-API/WP-API/git/refs{/sha}","trees_url":"https://api.github.com/repos/WP-API/WP-API/git/trees{/sha}","statuses_url":"https://api.github.com/repos/WP-API/WP-API/statuses/{sha}","languages_url":"https://api.github.com/repos/WP-API/WP-API/languages","stargazers_url":"https://api.github.com/repos/WP-API/WP-API/stargazers","contributors_url":"https://api.github.com/repos/WP-API/WP-API/contributors","subscribers_url":"https://api.github.com/repos/WP-API/WP-API/subscribers","subscription_url":"https://api.github.com/repos/WP-API/WP-API/subscription","commits_url":"https://api.github.com/repos/WP-API/WP-API/commits{/sha}","git_commits_url":"https://api.github.com/repos/WP-API/WP-API/git/commits{/sha}","comments_url":"https://api.github.com/repos/WP-API/WP-API/comments{/number}","issue_comment_url":"https://api.github.com/repos/WP-API/WP-API/issues/comments/{number}","contents_url":"https://api.github.com/repos/WP-API/WP-API/contents/{+path}","compare_url":"https://api.github.com/repos/WP-API/WP-API/compare/{base}...{head}","merges_url":"https://api.github.com/repos/WP-API/WP-API/merges","archive_url":"https://api.github.com/repos/WP-API/WP-API/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/WP-API/WP-API/downloads","issues_url":"https://api.github.com/repos/WP-API/WP-API/issues{/number}","pulls_url":"https://api.github.com/repos/WP-API/WP-API/pulls{/number}","milestones_url":"https://api.github.com/repos/WP-API/WP-API/milestones{/number}","notifications_url":"https://api.github.com/repos/WP-API/WP-API/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/WP-API/WP-API/labels{/name}","releases_url":"https://api.github.com/repos/WP-API/WP-API/releases{/id}","created_at":"2013-06-01T10:52:43Z","updated_at":"2015-02-11T11:19:38Z","pushed_at":"2015-02-11T11:32:16Z","git_url":"git://github.com/WP-API/WP-API.git","ssh_url":"git@github.com:WP-API/WP-API.git","clone_url":"https://github.com/WP-API/WP-API.git","svn_url":"https://github.com/WP-API/WP-API","homepage":null,"size":6331,"stargazers_count":1491,"watchers_count":1491,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":276,"mirror_url":null,"open_issues_count":209,"forks":276,"open_issues":209,"watchers":1491,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/WP-API/WP-API/pulls/746"},"html":{"href":"https://github.com/WP-API/WP-API/pull/746"},"issue":{"href":"https://api.github.com/repos/WP-API/WP-API/issues/746"},"comments":{"href":"https://api.github.com/repos/WP-API/WP-API/issues/746/comments"},"review_comments":{"href":"https://api.github.com/repos/WP-API/WP-API/pulls/746/comments"},"review_comment":{"href":"https://api.github.com/repos/WP-API/WP-API/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/WP-API/WP-API/pulls/746/commits"},"statuses":{"href":"https://api.github.com/repos/WP-API/WP-API/statuses/92ac0204c6390a2838f0db66b1a952eb99af87f9"}}}}