{"action":"created","comment":{"url":"https://api.github.com/repos/WP-API/wp-api-site-endpoints/pulls/comments/78815929","id":78815929,"diff_hunk":"@@ -0,0 +1,156 @@\n+<?php\n+\n+/**\n+ * Manage a WordPress site's settings.\n+ */\n+\n+class WP_REST_Settings_Controller extends WP_REST_Controller {\n+\tpublic function __construct() {\n+\t\t$this->namespace = 'wp/v2';\n+\t\t$this->rest_base = 'settings';","path":"lib/class-wp-rest-settings-controller.php","position":10,"original_position":10,"commit_id":"002ff7f0a842439f5c10ff067f0772f7a88d4beb","original_commit_id":"002ff7f0a842439f5c10ff067f0772f7a88d4beb","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":"These should be moved to `protected $namespace = '...'` instead.","created_at":"2016-09-14T19:06:52Z","updated_at":"2016-09-14T19:06:52Z","html_url":"https://github.com/WP-API/wp-api-site-endpoints/pull/13#discussion_r78815929","pull_request_url":"https://api.github.com/repos/WP-API/wp-api-site-endpoints/pulls/13","_links":{"self":{"href":"https://api.github.com/repos/WP-API/wp-api-site-endpoints/pulls/comments/78815929"},"html":{"href":"https://github.com/WP-API/wp-api-site-endpoints/pull/13#discussion_r78815929"},"pull_request":{"href":"https://api.github.com/repos/WP-API/wp-api-site-endpoints/pulls/13"}}},"pull_request":{"url":"https://api.github.com/repos/WP-API/wp-api-site-endpoints/pulls/13","id":83299967,"html_url":"https://github.com/WP-API/wp-api-site-endpoints/pull/13","diff_url":"https://github.com/WP-API/wp-api-site-endpoints/pull/13.diff","patch_url":"https://github.com/WP-API/wp-api-site-endpoints/pull/13.patch","issue_url":"https://api.github.com/repos/WP-API/wp-api-site-endpoints/issues/13","number":13,"state":"open","locked":false,"title":"Experiment with registered settings","user":{"login":"joehoyle","id":161683,"avatar_url":"https://avatars.githubusercontent.com/u/161683?v=3","gravatar_id":"","url":"https://api.github.com/users/joehoyle","html_url":"https://github.com/joehoyle","followers_url":"https://api.github.com/users/joehoyle/followers","following_url":"https://api.github.com/users/joehoyle/following{/other_user}","gists_url":"https://api.github.com/users/joehoyle/gists{/gist_id}","starred_url":"https://api.github.com/users/joehoyle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joehoyle/subscriptions","organizations_url":"https://api.github.com/users/joehoyle/orgs","repos_url":"https://api.github.com/users/joehoyle/repos","events_url":"https://api.github.com/users/joehoyle/events{/privacy}","received_events_url":"https://api.github.com/users/joehoyle/received_events","type":"User","site_admin":false},"body":"In https://core.trac.wordpress.org/ticket/37885 I have added a patch to\nmake the registered settings be imbued with more data for inclusion in\nthe REST API. This is a work in progress to see how the controller might\nlook for that.","created_at":"2016-08-30T16:04:00Z","updated_at":"2016-09-14T19:13:45Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c7f5cca218c866456e2029d5b092af05510b6043","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/WP-API/wp-api-site-endpoints/pulls/13/commits","review_comments_url":"https://api.github.com/repos/WP-API/wp-api-site-endpoints/pulls/13/comments","review_comment_url":"https://api.github.com/repos/WP-API/wp-api-site-endpoints/pulls/comments{/number}","comments_url":"https://api.github.com/repos/WP-API/wp-api-site-endpoints/issues/13/comments","statuses_url":"https://api.github.com/repos/WP-API/wp-api-site-endpoints/statuses/002ff7f0a842439f5c10ff067f0772f7a88d4beb","head":{"label":"WP-API:register-setting-experiment","ref":"register-setting-experiment","sha":"002ff7f0a842439f5c10ff067f0772f7a88d4beb","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":50659452,"name":"wp-api-site-endpoints","full_name":"WP-API/wp-api-site-endpoints","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-site-endpoints","description":"Feature plugin for Site Endpoints","fork":false,"url":"https://api.github.com/repos/WP-API/wp-api-site-endpoints","forks_url":"https://api.github.com/repos/WP-API/wp-api-site-endpoints/forks","keys_url":"https://api.github.com/repos/WP-API/wp-api-site-endpoints/keys{/key_id}","collaborators_url":"https://api.github.com/repos/WP-API/wp-api-site-endpoints/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/WP-API/wp-api-site-endpoints/teams","hooks_url":"https://api.github.com/repos/WP-API/wp-api-site-endpoints/hooks","issue_events_url":"https://api.github.com/repos/WP-API/wp-api-site-endpoints/issues/events{/number}","events_url":"https://api.github.com/repos/WP-API/wp-api-site-endpoints/events","assignees_url":"https://api.github.com/repos/WP-API/wp-api-site-endpoints/assignees{/user}","branches_url":"https://api.github.com/repos/WP-API/wp-api-site-endpoints/branches{/branch}","tags_url":"https://api.github.com/repos/WP-API/wp-api-site-endpoints/tags","blobs_url":"https://api.github.com/repos/WP-API/wp-api-site-endpoints/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/WP-API/wp-api-site-endpoints/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/WP-API/wp-api-site-endpoints/git/refs{/sha}","trees_url":"https://api.github.com/repos/WP-API/wp-api-site-endpoints/git/trees{/sha}","statuses_url":"https://api.github.com/repos/WP-API/wp-api-site-endpoints/statuses/{sha}","languages_url":"https://api.github.com/repos/WP-API/wp-api-site-endpoints/languages","stargazers_url":"https://api.github.com/repos/WP-API/wp-api-site-endpoints/stargazers","contributors_url":"https://api.github.com/repos/WP-API/wp-api-site-endpoints/contributors","subscribers_url":"https://api.github.com/repos/WP-API/wp-api-site-endpoints/subscribers","subscription_url":"https://api.github.com/repos/WP-API/wp-api-site-endpoints/subscription","commits_url":"https://api.github.com/repos/WP-API/wp-api-site-endpoints/commits{/sha}","git_commits_url":"https://api.github.com/repos/WP-API/wp-api-site-endpoints/git/commits{/sha}","comments_url":"https://api.github.com/repos/WP-API/wp-api-site-endpoints/comments{/number}","issue_comment_url":"https://api.github.com/repos/WP-API/wp-api-site-endpoints/issues/comments{/number}","contents_url":"https://api.github.com/repos/WP-API/wp-api-site-endpoints/contents/{+path}","compare_url":"https://api.github.com/repos/WP-API/wp-api-site-endpoints/compare/{base}...{head}","merges_url":"https://api.github.com/repos/WP-API/wp-api-site-endpoints/merges","archive_url":"https://api.github.com/repos/WP-API/wp-api-site-endpoints/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/WP-API/wp-api-site-endpoints/downloads","issues_url":"https://api.github.com/repos/WP-API/wp-api-site-endpoints/issues{/number}","pulls_url":"https://api.github.com/repos/WP-API/wp-api-site-endpoints/pulls{/number}","milestones_url":"https://api.github.com/repos/WP-API/wp-api-site-endpoints/milestones{/number}","notifications_url":"https://api.github.com/repos/WP-API/wp-api-site-endpoints/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/WP-API/wp-api-site-endpoints/labels{/name}","releases_url":"https://api.github.com/repos/WP-API/wp-api-site-endpoints/releases{/id}","deployments_url":"https://api.github.com/repos/WP-API/wp-api-site-endpoints/deployments","created_at":"2016-01-29T11:49:18Z","updated_at":"2016-09-09T13:39:02Z","pushed_at":"2016-09-14T18:31:12Z","git_url":"git://github.com/WP-API/wp-api-site-endpoints.git","ssh_url":"git@github.com:WP-API/wp-api-site-endpoints.git","clone_url":"https://github.com/WP-API/wp-api-site-endpoints.git","svn_url":"https://github.com/WP-API/wp-api-site-endpoints","homepage":"","size":29,"stargazers_count":25,"watchers_count":25,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":7,"mirror_url":null,"open_issues_count":10,"forks":7,"open_issues":10,"watchers":25,"default_branch":"master"}},"base":{"label":"WP-API:master","ref":"master","sha":"b68fbd1048cfd9d8a6a6330be8c173d437687740","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":50659452,"name":"wp-api-site-endpoints","full_name":"WP-API/wp-api-site-endpoints","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-site-endpoints","description":"Feature plugin for Site Endpoints","fork":false,"url":"https://api.github.com/repos/WP-API/wp-api-site-endpoints","forks_url":"https://api.github.com/repos/WP-API/wp-api-site-endpoints/forks","keys_url":"https://api.github.com/repos/WP-API/wp-api-site-endpoints/keys{/key_id}","collaborators_url":"https://api.github.com/repos/WP-API/wp-api-site-endpoints/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/WP-API/wp-api-site-endpoints/teams","hooks_url":"https://api.github.com/repos/WP-API/wp-api-site-endpoints/hooks","issue_events_url":"https://api.github.com/repos/WP-API/wp-api-site-endpoints/issues/events{/number}","events_url":"https://api.github.com/repos/WP-API/wp-api-site-endpoints/events","assignees_url":"https://api.github.com/repos/WP-API/wp-api-site-endpoints/assignees{/user}","branches_url":"https://api.github.com/repos/WP-API/wp-api-site-endpoints/branches{/branch}","tags_url":"https://api.github.com/repos/WP-API/wp-api-site-endpoints/tags","blobs_url":"https://api.github.com/repos/WP-API/wp-api-site-endpoints/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/WP-API/wp-api-site-endpoints/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/WP-API/wp-api-site-endpoints/git/refs{/sha}","trees_url":"https://api.github.com/repos/WP-API/wp-api-site-endpoints/git/trees{/sha}","statuses_url":"https://api.github.com/repos/WP-API/wp-api-site-endpoints/statuses/{sha}","languages_url":"https://api.github.com/repos/WP-API/wp-api-site-endpoints/languages","stargazers_url":"https://api.github.com/repos/WP-API/wp-api-site-endpoints/stargazers","contributors_url":"https://api.github.com/repos/WP-API/wp-api-site-endpoints/contributors","subscribers_url":"https://api.github.com/repos/WP-API/wp-api-site-endpoints/subscribers","subscription_url":"https://api.github.com/repos/WP-API/wp-api-site-endpoints/subscription","commits_url":"https://api.github.com/repos/WP-API/wp-api-site-endpoints/commits{/sha}","git_commits_url":"https://api.github.com/repos/WP-API/wp-api-site-endpoints/git/commits{/sha}","comments_url":"https://api.github.com/repos/WP-API/wp-api-site-endpoints/comments{/number}","issue_comment_url":"https://api.github.com/repos/WP-API/wp-api-site-endpoints/issues/comments{/number}","contents_url":"https://api.github.com/repos/WP-API/wp-api-site-endpoints/contents/{+path}","compare_url":"https://api.github.com/repos/WP-API/wp-api-site-endpoints/compare/{base}...{head}","merges_url":"https://api.github.com/repos/WP-API/wp-api-site-endpoints/merges","archive_url":"https://api.github.com/repos/WP-API/wp-api-site-endpoints/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/WP-API/wp-api-site-endpoints/downloads","issues_url":"https://api.github.com/repos/WP-API/wp-api-site-endpoints/issues{/number}","pulls_url":"https://api.github.com/repos/WP-API/wp-api-site-endpoints/pulls{/number}","milestones_url":"https://api.github.com/repos/WP-API/wp-api-site-endpoints/milestones{/number}","notifications_url":"https://api.github.com/repos/WP-API/wp-api-site-endpoints/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/WP-API/wp-api-site-endpoints/labels{/name}","releases_url":"https://api.github.com/repos/WP-API/wp-api-site-endpoints/releases{/id}","deployments_url":"https://api.github.com/repos/WP-API/wp-api-site-endpoints/deployments","created_at":"2016-01-29T11:49:18Z","updated_at":"2016-09-09T13:39:02Z","pushed_at":"2016-09-14T18:31:12Z","git_url":"git://github.com/WP-API/wp-api-site-endpoints.git","ssh_url":"git@github.com:WP-API/wp-api-site-endpoints.git","clone_url":"https://github.com/WP-API/wp-api-site-endpoints.git","svn_url":"https://github.com/WP-API/wp-api-site-endpoints","homepage":"","size":29,"stargazers_count":25,"watchers_count":25,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":7,"mirror_url":null,"open_issues_count":10,"forks":7,"open_issues":10,"watchers":25,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/WP-API/wp-api-site-endpoints/pulls/13"},"html":{"href":"https://github.com/WP-API/wp-api-site-endpoints/pull/13"},"issue":{"href":"https://api.github.com/repos/WP-API/wp-api-site-endpoints/issues/13"},"comments":{"href":"https://api.github.com/repos/WP-API/wp-api-site-endpoints/issues/13/comments"},"review_comments":{"href":"https://api.github.com/repos/WP-API/wp-api-site-endpoints/pulls/13/comments"},"review_comment":{"href":"https://api.github.com/repos/WP-API/wp-api-site-endpoints/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/WP-API/wp-api-site-endpoints/pulls/13/commits"},"statuses":{"href":"https://api.github.com/repos/WP-API/wp-api-site-endpoints/statuses/002ff7f0a842439f5c10ff067f0772f7a88d4beb"}}}}
{"actor":{"display_login":"rmccue"}}