{"action":"opened","number":945,"pull_request":{"url":"https://api.github.com/repos/10up/ElasticPress/pulls/945","id":145214056,"html_url":"https://github.com/10up/ElasticPress/pull/945","diff_url":"https://github.com/10up/ElasticPress/pull/945.diff","patch_url":"https://github.com/10up/ElasticPress/pull/945.patch","issue_url":"https://api.github.com/repos/10up/ElasticPress/issues/945","number":945,"state":"open","locked":false,"title":"Add sanity checks before accessing object properties","user":{"login":"lukaspawlik","id":7304218,"avatar_url":"https://avatars0.githubusercontent.com/u/7304218?v=4","gravatar_id":"","url":"https://api.github.com/users/lukaspawlik","html_url":"https://github.com/lukaspawlik","followers_url":"https://api.github.com/users/lukaspawlik/followers","following_url":"https://api.github.com/users/lukaspawlik/following{/other_user}","gists_url":"https://api.github.com/users/lukaspawlik/gists{/gist_id}","starred_url":"https://api.github.com/users/lukaspawlik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lukaspawlik/subscriptions","organizations_url":"https://api.github.com/users/lukaspawlik/orgs","repos_url":"https://api.github.com/users/lukaspawlik/repos","events_url":"https://api.github.com/users/lukaspawlik/events{/privacy}","received_events_url":"https://api.github.com/users/lukaspawlik/received_events","type":"User","site_admin":false},"body":"@tlovett1,\r\n\r\nThis is a fix for #943 - I couldn't reproduce this on my local however it's possible that functions `get_term_by` and `get_term` may not return valid data as expected. Adding extra sanity checks before accessing their results won't do any harm.","created_at":"2017-10-06T18:11:43Z","updated_at":"2017-10-06T18:11:43Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"milestone":{"url":"https://api.github.com/repos/10up/ElasticPress/milestones/24","html_url":"https://github.com/10up/ElasticPress/milestone/24","labels_url":"https://api.github.com/repos/10up/ElasticPress/milestones/24/labels","id":2502857,"number":24,"title":"2.4","description":"","creator":{"login":"tlovett1","id":1844351,"avatar_url":"https://avatars3.githubusercontent.com/u/1844351?v=4","gravatar_id":"","url":"https://api.github.com/users/tlovett1","html_url":"https://github.com/tlovett1","followers_url":"https://api.github.com/users/tlovett1/followers","following_url":"https://api.github.com/users/tlovett1/following{/other_user}","gists_url":"https://api.github.com/users/tlovett1/gists{/gist_id}","starred_url":"https://api.github.com/users/tlovett1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tlovett1/subscriptions","organizations_url":"https://api.github.com/users/tlovett1/orgs","repos_url":"https://api.github.com/users/tlovett1/repos","events_url":"https://api.github.com/users/tlovett1/events{/privacy}","received_events_url":"https://api.github.com/users/tlovett1/received_events","type":"User","site_admin":false},"open_issues":6,"closed_issues":17,"state":"open","created_at":"2017-05-05T16:51:17Z","updated_at":"2017-10-06T18:11:43Z","due_on":"2017-10-15T07:00:00Z","closed_at":null},"commits_url":"https://api.github.com/repos/10up/ElasticPress/pulls/945/commits","review_comments_url":"https://api.github.com/repos/10up/ElasticPress/pulls/945/comments","review_comment_url":"https://api.github.com/repos/10up/ElasticPress/pulls/comments{/number}","comments_url":"https://api.github.com/repos/10up/ElasticPress/issues/945/comments","statuses_url":"https://api.github.com/repos/10up/ElasticPress/statuses/6e2bf6baae9a46da27bcd0adfcc77cf44b1d75aa","head":{"label":"lukaspawlik:fix/issue-943","ref":"fix/issue-943","sha":"6e2bf6baae9a46da27bcd0adfcc77cf44b1d75aa","user":{"login":"lukaspawlik","id":7304218,"avatar_url":"https://avatars0.githubusercontent.com/u/7304218?v=4","gravatar_id":"","url":"https://api.github.com/users/lukaspawlik","html_url":"https://github.com/lukaspawlik","followers_url":"https://api.github.com/users/lukaspawlik/followers","following_url":"https://api.github.com/users/lukaspawlik/following{/other_user}","gists_url":"https://api.github.com/users/lukaspawlik/gists{/gist_id}","starred_url":"https://api.github.com/users/lukaspawlik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lukaspawlik/subscriptions","organizations_url":"https://api.github.com/users/lukaspawlik/orgs","repos_url":"https://api.github.com/users/lukaspawlik/repos","events_url":"https://api.github.com/users/lukaspawlik/events{/privacy}","received_events_url":"https://api.github.com/users/lukaspawlik/received_events","type":"User","site_admin":false},"repo":{"id":42409782,"name":"ElasticPress","full_name":"lukaspawlik/ElasticPress","owner":{"login":"lukaspawlik","id":7304218,"avatar_url":"https://avatars0.githubusercontent.com/u/7304218?v=4","gravatar_id":"","url":"https://api.github.com/users/lukaspawlik","html_url":"https://github.com/lukaspawlik","followers_url":"https://api.github.com/users/lukaspawlik/followers","following_url":"https://api.github.com/users/lukaspawlik/following{/other_user}","gists_url":"https://api.github.com/users/lukaspawlik/gists{/gist_id}","starred_url":"https://api.github.com/users/lukaspawlik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lukaspawlik/subscriptions","organizations_url":"https://api.github.com/users/lukaspawlik/orgs","repos_url":"https://api.github.com/users/lukaspawlik/repos","events_url":"https://api.github.com/users/lukaspawlik/events{/privacy}","received_events_url":"https://api.github.com/users/lukaspawlik/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/lukaspawlik/ElasticPress","description":"A plugin for integrating WordPress with Elasticsearch","fork":true,"url":"https://api.github.com/repos/lukaspawlik/ElasticPress","forks_url":"https://api.github.com/repos/lukaspawlik/ElasticPress/forks","keys_url":"https://api.github.com/repos/lukaspawlik/ElasticPress/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lukaspawlik/ElasticPress/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lukaspawlik/ElasticPress/teams","hooks_url":"https://api.github.com/repos/lukaspawlik/ElasticPress/hooks","issue_events_url":"https://api.github.com/repos/lukaspawlik/ElasticPress/issues/events{/number}","events_url":"https://api.github.com/repos/lukaspawlik/ElasticPress/events","assignees_url":"https://api.github.com/repos/lukaspawlik/ElasticPress/assignees{/user}","branches_url":"https://api.github.com/repos/lukaspawlik/ElasticPress/branches{/branch}","tags_url":"https://api.github.com/repos/lukaspawlik/ElasticPress/tags","blobs_url":"https://api.github.com/repos/lukaspawlik/ElasticPress/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lukaspawlik/ElasticPress/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lukaspawlik/ElasticPress/git/refs{/sha}","trees_url":"https://api.github.com/repos/lukaspawlik/ElasticPress/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lukaspawlik/ElasticPress/statuses/{sha}","languages_url":"https://api.github.com/repos/lukaspawlik/ElasticPress/languages","stargazers_url":"https://api.github.com/repos/lukaspawlik/ElasticPress/stargazers","contributors_url":"https://api.github.com/repos/lukaspawlik/ElasticPress/contributors","subscribers_url":"https://api.github.com/repos/lukaspawlik/ElasticPress/subscribers","subscription_url":"https://api.github.com/repos/lukaspawlik/ElasticPress/subscription","commits_url":"https://api.github.com/repos/lukaspawlik/ElasticPress/commits{/sha}","git_commits_url":"https://api.github.com/repos/lukaspawlik/ElasticPress/git/commits{/sha}","comments_url":"https://api.github.com/repos/lukaspawlik/ElasticPress/comments{/number}","issue_comment_url":"https://api.github.com/repos/lukaspawlik/ElasticPress/issues/comments{/number}","contents_url":"https://api.github.com/repos/lukaspawlik/ElasticPress/contents/{+path}","compare_url":"https://api.github.com/repos/lukaspawlik/ElasticPress/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lukaspawlik/ElasticPress/merges","archive_url":"https://api.github.com/repos/lukaspawlik/ElasticPress/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lukaspawlik/ElasticPress/downloads","issues_url":"https://api.github.com/repos/lukaspawlik/ElasticPress/issues{/number}","pulls_url":"https://api.github.com/repos/lukaspawlik/ElasticPress/pulls{/number}","milestones_url":"https://api.github.com/repos/lukaspawlik/ElasticPress/milestones{/number}","notifications_url":"https://api.github.com/repos/lukaspawlik/ElasticPress/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lukaspawlik/ElasticPress/labels{/name}","releases_url":"https://api.github.com/repos/lukaspawlik/ElasticPress/releases{/id}","deployments_url":"https://api.github.com/repos/lukaspawlik/ElasticPress/deployments","created_at":"2015-09-13T19:31:38Z","updated_at":"2016-01-20T17:24:13Z","pushed_at":"2017-10-06T18:09:27Z","git_url":"git://github.com/lukaspawlik/ElasticPress.git","ssh_url":"git@github.com:lukaspawlik/ElasticPress.git","clone_url":"https://github.com/lukaspawlik/ElasticPress.git","svn_url":"https://github.com/lukaspawlik/ElasticPress","homepage":"","size":2895,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"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":"10up:develop","ref":"develop","sha":"814c3e6e004b53bb30024b45fb6e8faa57700f80","user":{"login":"10up","id":3358927,"avatar_url":"https://avatars3.githubusercontent.com/u/3358927?v=4","gravatar_id":"","url":"https://api.github.com/users/10up","html_url":"https://github.com/10up","followers_url":"https://api.github.com/users/10up/followers","following_url":"https://api.github.com/users/10up/following{/other_user}","gists_url":"https://api.github.com/users/10up/gists{/gist_id}","starred_url":"https://api.github.com/users/10up/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/10up/subscriptions","organizations_url":"https://api.github.com/users/10up/orgs","repos_url":"https://api.github.com/users/10up/repos","events_url":"https://api.github.com/users/10up/events{/privacy}","received_events_url":"https://api.github.com/users/10up/received_events","type":"Organization","site_admin":false},"repo":{"id":20672392,"name":"ElasticPress","full_name":"10up/ElasticPress","owner":{"login":"10up","id":3358927,"avatar_url":"https://avatars3.githubusercontent.com/u/3358927?v=4","gravatar_id":"","url":"https://api.github.com/users/10up","html_url":"https://github.com/10up","followers_url":"https://api.github.com/users/10up/followers","following_url":"https://api.github.com/users/10up/following{/other_user}","gists_url":"https://api.github.com/users/10up/gists{/gist_id}","starred_url":"https://api.github.com/users/10up/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/10up/subscriptions","organizations_url":"https://api.github.com/users/10up/orgs","repos_url":"https://api.github.com/users/10up/repos","events_url":"https://api.github.com/users/10up/events{/privacy}","received_events_url":"https://api.github.com/users/10up/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/10up/ElasticPress","description":"A fast and flexible search and query engine for WordPress.","fork":false,"url":"https://api.github.com/repos/10up/ElasticPress","forks_url":"https://api.github.com/repos/10up/ElasticPress/forks","keys_url":"https://api.github.com/repos/10up/ElasticPress/keys{/key_id}","collaborators_url":"https://api.github.com/repos/10up/ElasticPress/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/10up/ElasticPress/teams","hooks_url":"https://api.github.com/repos/10up/ElasticPress/hooks","issue_events_url":"https://api.github.com/repos/10up/ElasticPress/issues/events{/number}","events_url":"https://api.github.com/repos/10up/ElasticPress/events","assignees_url":"https://api.github.com/repos/10up/ElasticPress/assignees{/user}","branches_url":"https://api.github.com/repos/10up/ElasticPress/branches{/branch}","tags_url":"https://api.github.com/repos/10up/ElasticPress/tags","blobs_url":"https://api.github.com/repos/10up/ElasticPress/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/10up/ElasticPress/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/10up/ElasticPress/git/refs{/sha}","trees_url":"https://api.github.com/repos/10up/ElasticPress/git/trees{/sha}","statuses_url":"https://api.github.com/repos/10up/ElasticPress/statuses/{sha}","languages_url":"https://api.github.com/repos/10up/ElasticPress/languages","stargazers_url":"https://api.github.com/repos/10up/ElasticPress/stargazers","contributors_url":"https://api.github.com/repos/10up/ElasticPress/contributors","subscribers_url":"https://api.github.com/repos/10up/ElasticPress/subscribers","subscription_url":"https://api.github.com/repos/10up/ElasticPress/subscription","commits_url":"https://api.github.com/repos/10up/ElasticPress/commits{/sha}","git_commits_url":"https://api.github.com/repos/10up/ElasticPress/git/commits{/sha}","comments_url":"https://api.github.com/repos/10up/ElasticPress/comments{/number}","issue_comment_url":"https://api.github.com/repos/10up/ElasticPress/issues/comments{/number}","contents_url":"https://api.github.com/repos/10up/ElasticPress/contents/{+path}","compare_url":"https://api.github.com/repos/10up/ElasticPress/compare/{base}...{head}","merges_url":"https://api.github.com/repos/10up/ElasticPress/merges","archive_url":"https://api.github.com/repos/10up/ElasticPress/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/10up/ElasticPress/downloads","issues_url":"https://api.github.com/repos/10up/ElasticPress/issues{/number}","pulls_url":"https://api.github.com/repos/10up/ElasticPress/pulls{/number}","milestones_url":"https://api.github.com/repos/10up/ElasticPress/milestones{/number}","notifications_url":"https://api.github.com/repos/10up/ElasticPress/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/10up/ElasticPress/labels{/name}","releases_url":"https://api.github.com/repos/10up/ElasticPress/releases{/id}","deployments_url":"https://api.github.com/repos/10up/ElasticPress/deployments","created_at":"2014-06-10T04:29:30Z","updated_at":"2017-10-04T17:21:25Z","pushed_at":"2017-10-04T22:45:42Z","git_url":"git://github.com/10up/ElasticPress.git","ssh_url":"git@github.com:10up/ElasticPress.git","clone_url":"https://github.com/10up/ElasticPress.git","svn_url":"https://github.com/10up/ElasticPress","homepage":"https://elasticpress.io","size":2860,"stargazers_count":567,"watchers_count":567,"language":"PHP","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":145,"mirror_url":null,"open_issues_count":83,"forks":145,"open_issues":83,"watchers":567,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/10up/ElasticPress/pulls/945"},"html":{"href":"https://github.com/10up/ElasticPress/pull/945"},"issue":{"href":"https://api.github.com/repos/10up/ElasticPress/issues/945"},"comments":{"href":"https://api.github.com/repos/10up/ElasticPress/issues/945/comments"},"review_comments":{"href":"https://api.github.com/repos/10up/ElasticPress/pulls/945/comments"},"review_comment":{"href":"https://api.github.com/repos/10up/ElasticPress/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/10up/ElasticPress/pulls/945/commits"},"statuses":{"href":"https://api.github.com/repos/10up/ElasticPress/statuses/6e2bf6baae9a46da27bcd0adfcc77cf44b1d75aa"}},"author_association":"COLLABORATOR","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":true,"commits":1,"additions":9,"deletions":5,"changed_files":1}}
{"actor":{"display_login":"lukaspawlik"}}