{"action":"created","comment":{"url":"https://api.github.com/repos/moderntribe/the-events-calendar/pulls/comments/32733141","id":32733141,"diff_hunk":"@@ -0,0 +1,129 @@\n+<?php\n+\n+/**\n+ * Class Tribe__Events__Admin__Organizer_Chooser_Meta_Box\n+ *\n+ * Handles the Organizer section inside the Events meta box\n+ */\n+class Tribe__Events__Admin__Organizer_Chooser_Meta_Box {\n+\t/**\n+\t * @var WP_Post\n+\t */\n+\tprotected $event;\n+\n+\t/**\n+\t * @var Tribe__Events__Main\n+\t */\n+\tprotected $tribe;\n+\n+\tpublic function __construct( $event = null ) {\n+\t\t$this->tribe = Tribe__Events__Main::instance();\n+\t\t$this->get_event( $event );\n+\t}\n+\n+\t/**\n+\t * Work with the specifed event object or else use a placeholder if we are in\n+\t * the middle of creating a new event.\n+\t *\n+\t * @param null $event\n+\t */\n+\tprotected function get_event( $event = null ) {\n+\t\tglobal $post;\n+\n+\t\tif ( $event === null ) {\n+\t\t\t$this->event = $post;\n+\t\t} elseif ( is_a( $event, 'WP_Post' ) ) {\n+\t\t\t$this->event = $event;\n+\t\t} else {\n+\t\t\t$this->event = new WP_Post( (object) array( 'ID' => 0 ) );\n+\t\t}\n+\t}\n+\n+\tpublic function render() {","path":"src/Tribe/Admin/Organizer_Chooser_Meta_Box.php","position":42,"original_position":42,"commit_id":"4ec179cecffccf9fc1efa6e1319c499ddde33c13","original_commit_id":"4ec179cecffccf9fc1efa6e1319c499ddde33c13","user":{"login":"borkweb","id":430385,"avatar_url":"https://avatars.githubusercontent.com/u/430385?v=3","gravatar_id":"","url":"https://api.github.com/users/borkweb","html_url":"https://github.com/borkweb","followers_url":"https://api.github.com/users/borkweb/followers","following_url":"https://api.github.com/users/borkweb/following{/other_user}","gists_url":"https://api.github.com/users/borkweb/gists{/gist_id}","starred_url":"https://api.github.com/users/borkweb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/borkweb/subscriptions","organizations_url":"https://api.github.com/users/borkweb/orgs","repos_url":"https://api.github.com/users/borkweb/repos","events_url":"https://api.github.com/users/borkweb/events{/privacy}","received_events_url":"https://api.github.com/users/borkweb/received_events","type":"User","site_admin":false},"body":"Add a docblock comment for this method?","created_at":"2015-06-18T14:08:20Z","updated_at":"2015-06-18T14:08:20Z","html_url":"https://github.com/moderntribe/the-events-calendar/pull/136#discussion_r32733141","pull_request_url":"https://api.github.com/repos/moderntribe/the-events-calendar/pulls/136","_links":{"self":{"href":"https://api.github.com/repos/moderntribe/the-events-calendar/pulls/comments/32733141"},"html":{"href":"https://github.com/moderntribe/the-events-calendar/pull/136#discussion_r32733141"},"pull_request":{"href":"https://api.github.com/repos/moderntribe/the-events-calendar/pulls/136"}}},"pull_request":{"url":"https://api.github.com/repos/moderntribe/the-events-calendar/pulls/136","id":38009171,"html_url":"https://github.com/moderntribe/the-events-calendar/pull/136","diff_url":"https://github.com/moderntribe/the-events-calendar/pull/136.diff","patch_url":"https://github.com/moderntribe/the-events-calendar/pull/136.patch","issue_url":"https://api.github.com/repos/moderntribe/the-events-calendar/issues/136","number":136,"state":"open","locked":false,"title":"Multiple organizers for an event","user":{"login":"jbrinley","id":288845,"avatar_url":"https://avatars.githubusercontent.com/u/288845?v=3","gravatar_id":"","url":"https://api.github.com/users/jbrinley","html_url":"https://github.com/jbrinley","followers_url":"https://api.github.com/users/jbrinley/followers","following_url":"https://api.github.com/users/jbrinley/following{/other_user}","gists_url":"https://api.github.com/users/jbrinley/gists{/gist_id}","starred_url":"https://api.github.com/users/jbrinley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jbrinley/subscriptions","organizations_url":"https://api.github.com/users/jbrinley/orgs","repos_url":"https://api.github.com/users/jbrinley/repos","events_url":"https://api.github.com/users/jbrinley/events{/privacy}","received_events_url":"https://api.github.com/users/jbrinley/received_events","type":"User","site_admin":false},"body":"Add UI to the event admin to add multiple organizers to the event","created_at":"2015-06-18T13:57:30Z","updated_at":"2015-06-18T14:08:20Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8ef1c6fc0637478774cfb70818b63dc88b94c3c7","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/moderntribe/the-events-calendar/pulls/136/commits","review_comments_url":"https://api.github.com/repos/moderntribe/the-events-calendar/pulls/136/comments","review_comment_url":"https://api.github.com/repos/moderntribe/the-events-calendar/pulls/comments{/number}","comments_url":"https://api.github.com/repos/moderntribe/the-events-calendar/issues/136/comments","statuses_url":"https://api.github.com/repos/moderntribe/the-events-calendar/statuses/4ec179cecffccf9fc1efa6e1319c499ddde33c13","head":{"label":"moderntribe:feature/33808-multi-organizer-merge","ref":"feature/33808-multi-organizer-merge","sha":"4ec179cecffccf9fc1efa6e1319c499ddde33c13","user":{"login":"moderntribe","id":2279551,"avatar_url":"https://avatars.githubusercontent.com/u/2279551?v=3","gravatar_id":"","url":"https://api.github.com/users/moderntribe","html_url":"https://github.com/moderntribe","followers_url":"https://api.github.com/users/moderntribe/followers","following_url":"https://api.github.com/users/moderntribe/following{/other_user}","gists_url":"https://api.github.com/users/moderntribe/gists{/gist_id}","starred_url":"https://api.github.com/users/moderntribe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/moderntribe/subscriptions","organizations_url":"https://api.github.com/users/moderntribe/orgs","repos_url":"https://api.github.com/users/moderntribe/repos","events_url":"https://api.github.com/users/moderntribe/events{/privacy}","received_events_url":"https://api.github.com/users/moderntribe/received_events","type":"Organization","site_admin":false},"repo":{"id":16366134,"name":"the-events-calendar","full_name":"moderntribe/the-events-calendar","owner":{"login":"moderntribe","id":2279551,"avatar_url":"https://avatars.githubusercontent.com/u/2279551?v=3","gravatar_id":"","url":"https://api.github.com/users/moderntribe","html_url":"https://github.com/moderntribe","followers_url":"https://api.github.com/users/moderntribe/followers","following_url":"https://api.github.com/users/moderntribe/following{/other_user}","gists_url":"https://api.github.com/users/moderntribe/gists{/gist_id}","starred_url":"https://api.github.com/users/moderntribe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/moderntribe/subscriptions","organizations_url":"https://api.github.com/users/moderntribe/orgs","repos_url":"https://api.github.com/users/moderntribe/repos","events_url":"https://api.github.com/users/moderntribe/events{/privacy}","received_events_url":"https://api.github.com/users/moderntribe/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/moderntribe/the-events-calendar","description":"The Events Calendar WordPress plugin by Modern Tribe","fork":false,"url":"https://api.github.com/repos/moderntribe/the-events-calendar","forks_url":"https://api.github.com/repos/moderntribe/the-events-calendar/forks","keys_url":"https://api.github.com/repos/moderntribe/the-events-calendar/keys{/key_id}","collaborators_url":"https://api.github.com/repos/moderntribe/the-events-calendar/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/moderntribe/the-events-calendar/teams","hooks_url":"https://api.github.com/repos/moderntribe/the-events-calendar/hooks","issue_events_url":"https://api.github.com/repos/moderntribe/the-events-calendar/issues/events{/number}","events_url":"https://api.github.com/repos/moderntribe/the-events-calendar/events","assignees_url":"https://api.github.com/repos/moderntribe/the-events-calendar/assignees{/user}","branches_url":"https://api.github.com/repos/moderntribe/the-events-calendar/branches{/branch}","tags_url":"https://api.github.com/repos/moderntribe/the-events-calendar/tags","blobs_url":"https://api.github.com/repos/moderntribe/the-events-calendar/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/moderntribe/the-events-calendar/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/moderntribe/the-events-calendar/git/refs{/sha}","trees_url":"https://api.github.com/repos/moderntribe/the-events-calendar/git/trees{/sha}","statuses_url":"https://api.github.com/repos/moderntribe/the-events-calendar/statuses/{sha}","languages_url":"https://api.github.com/repos/moderntribe/the-events-calendar/languages","stargazers_url":"https://api.github.com/repos/moderntribe/the-events-calendar/stargazers","contributors_url":"https://api.github.com/repos/moderntribe/the-events-calendar/contributors","subscribers_url":"https://api.github.com/repos/moderntribe/the-events-calendar/subscribers","subscription_url":"https://api.github.com/repos/moderntribe/the-events-calendar/subscription","commits_url":"https://api.github.com/repos/moderntribe/the-events-calendar/commits{/sha}","git_commits_url":"https://api.github.com/repos/moderntribe/the-events-calendar/git/commits{/sha}","comments_url":"https://api.github.com/repos/moderntribe/the-events-calendar/comments{/number}","issue_comment_url":"https://api.github.com/repos/moderntribe/the-events-calendar/issues/comments{/number}","contents_url":"https://api.github.com/repos/moderntribe/the-events-calendar/contents/{+path}","compare_url":"https://api.github.com/repos/moderntribe/the-events-calendar/compare/{base}...{head}","merges_url":"https://api.github.com/repos/moderntribe/the-events-calendar/merges","archive_url":"https://api.github.com/repos/moderntribe/the-events-calendar/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/moderntribe/the-events-calendar/downloads","issues_url":"https://api.github.com/repos/moderntribe/the-events-calendar/issues{/number}","pulls_url":"https://api.github.com/repos/moderntribe/the-events-calendar/pulls{/number}","milestones_url":"https://api.github.com/repos/moderntribe/the-events-calendar/milestones{/number}","notifications_url":"https://api.github.com/repos/moderntribe/the-events-calendar/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/moderntribe/the-events-calendar/labels{/name}","releases_url":"https://api.github.com/repos/moderntribe/the-events-calendar/releases{/id}","created_at":"2014-01-30T02:17:01Z","updated_at":"2015-06-16T19:21:57Z","pushed_at":"2015-06-18T13:57:30Z","git_url":"git://github.com/moderntribe/the-events-calendar.git","ssh_url":"git@github.com:moderntribe/the-events-calendar.git","clone_url":"https://github.com/moderntribe/the-events-calendar.git","svn_url":"https://github.com/moderntribe/the-events-calendar","homepage":null,"size":59342,"stargazers_count":61,"watchers_count":61,"language":"PHP","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":53,"mirror_url":null,"open_issues_count":25,"forks":53,"open_issues":25,"watchers":61,"default_branch":"develop"}},"base":{"label":"moderntribe:release/119","ref":"release/119","sha":"25389e6e63e1421f4f9427c3fe7b13a65435fbce","user":{"login":"moderntribe","id":2279551,"avatar_url":"https://avatars.githubusercontent.com/u/2279551?v=3","gravatar_id":"","url":"https://api.github.com/users/moderntribe","html_url":"https://github.com/moderntribe","followers_url":"https://api.github.com/users/moderntribe/followers","following_url":"https://api.github.com/users/moderntribe/following{/other_user}","gists_url":"https://api.github.com/users/moderntribe/gists{/gist_id}","starred_url":"https://api.github.com/users/moderntribe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/moderntribe/subscriptions","organizations_url":"https://api.github.com/users/moderntribe/orgs","repos_url":"https://api.github.com/users/moderntribe/repos","events_url":"https://api.github.com/users/moderntribe/events{/privacy}","received_events_url":"https://api.github.com/users/moderntribe/received_events","type":"Organization","site_admin":false},"repo":{"id":16366134,"name":"the-events-calendar","full_name":"moderntribe/the-events-calendar","owner":{"login":"moderntribe","id":2279551,"avatar_url":"https://avatars.githubusercontent.com/u/2279551?v=3","gravatar_id":"","url":"https://api.github.com/users/moderntribe","html_url":"https://github.com/moderntribe","followers_url":"https://api.github.com/users/moderntribe/followers","following_url":"https://api.github.com/users/moderntribe/following{/other_user}","gists_url":"https://api.github.com/users/moderntribe/gists{/gist_id}","starred_url":"https://api.github.com/users/moderntribe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/moderntribe/subscriptions","organizations_url":"https://api.github.com/users/moderntribe/orgs","repos_url":"https://api.github.com/users/moderntribe/repos","events_url":"https://api.github.com/users/moderntribe/events{/privacy}","received_events_url":"https://api.github.com/users/moderntribe/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/moderntribe/the-events-calendar","description":"The Events Calendar WordPress plugin by Modern Tribe","fork":false,"url":"https://api.github.com/repos/moderntribe/the-events-calendar","forks_url":"https://api.github.com/repos/moderntribe/the-events-calendar/forks","keys_url":"https://api.github.com/repos/moderntribe/the-events-calendar/keys{/key_id}","collaborators_url":"https://api.github.com/repos/moderntribe/the-events-calendar/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/moderntribe/the-events-calendar/teams","hooks_url":"https://api.github.com/repos/moderntribe/the-events-calendar/hooks","issue_events_url":"https://api.github.com/repos/moderntribe/the-events-calendar/issues/events{/number}","events_url":"https://api.github.com/repos/moderntribe/the-events-calendar/events","assignees_url":"https://api.github.com/repos/moderntribe/the-events-calendar/assignees{/user}","branches_url":"https://api.github.com/repos/moderntribe/the-events-calendar/branches{/branch}","tags_url":"https://api.github.com/repos/moderntribe/the-events-calendar/tags","blobs_url":"https://api.github.com/repos/moderntribe/the-events-calendar/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/moderntribe/the-events-calendar/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/moderntribe/the-events-calendar/git/refs{/sha}","trees_url":"https://api.github.com/repos/moderntribe/the-events-calendar/git/trees{/sha}","statuses_url":"https://api.github.com/repos/moderntribe/the-events-calendar/statuses/{sha}","languages_url":"https://api.github.com/repos/moderntribe/the-events-calendar/languages","stargazers_url":"https://api.github.com/repos/moderntribe/the-events-calendar/stargazers","contributors_url":"https://api.github.com/repos/moderntribe/the-events-calendar/contributors","subscribers_url":"https://api.github.com/repos/moderntribe/the-events-calendar/subscribers","subscription_url":"https://api.github.com/repos/moderntribe/the-events-calendar/subscription","commits_url":"https://api.github.com/repos/moderntribe/the-events-calendar/commits{/sha}","git_commits_url":"https://api.github.com/repos/moderntribe/the-events-calendar/git/commits{/sha}","comments_url":"https://api.github.com/repos/moderntribe/the-events-calendar/comments{/number}","issue_comment_url":"https://api.github.com/repos/moderntribe/the-events-calendar/issues/comments{/number}","contents_url":"https://api.github.com/repos/moderntribe/the-events-calendar/contents/{+path}","compare_url":"https://api.github.com/repos/moderntribe/the-events-calendar/compare/{base}...{head}","merges_url":"https://api.github.com/repos/moderntribe/the-events-calendar/merges","archive_url":"https://api.github.com/repos/moderntribe/the-events-calendar/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/moderntribe/the-events-calendar/downloads","issues_url":"https://api.github.com/repos/moderntribe/the-events-calendar/issues{/number}","pulls_url":"https://api.github.com/repos/moderntribe/the-events-calendar/pulls{/number}","milestones_url":"https://api.github.com/repos/moderntribe/the-events-calendar/milestones{/number}","notifications_url":"https://api.github.com/repos/moderntribe/the-events-calendar/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/moderntribe/the-events-calendar/labels{/name}","releases_url":"https://api.github.com/repos/moderntribe/the-events-calendar/releases{/id}","created_at":"2014-01-30T02:17:01Z","updated_at":"2015-06-16T19:21:57Z","pushed_at":"2015-06-18T13:57:30Z","git_url":"git://github.com/moderntribe/the-events-calendar.git","ssh_url":"git@github.com:moderntribe/the-events-calendar.git","clone_url":"https://github.com/moderntribe/the-events-calendar.git","svn_url":"https://github.com/moderntribe/the-events-calendar","homepage":null,"size":59342,"stargazers_count":61,"watchers_count":61,"language":"PHP","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":53,"mirror_url":null,"open_issues_count":25,"forks":53,"open_issues":25,"watchers":61,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/moderntribe/the-events-calendar/pulls/136"},"html":{"href":"https://github.com/moderntribe/the-events-calendar/pull/136"},"issue":{"href":"https://api.github.com/repos/moderntribe/the-events-calendar/issues/136"},"comments":{"href":"https://api.github.com/repos/moderntribe/the-events-calendar/issues/136/comments"},"review_comments":{"href":"https://api.github.com/repos/moderntribe/the-events-calendar/pulls/136/comments"},"review_comment":{"href":"https://api.github.com/repos/moderntribe/the-events-calendar/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/moderntribe/the-events-calendar/pulls/136/commits"},"statuses":{"href":"https://api.github.com/repos/moderntribe/the-events-calendar/statuses/4ec179cecffccf9fc1efa6e1319c499ddde33c13"}}}}