{"action":"opened","number":253,"pull_request":{"url":"https://api.github.com/repos/ThemeBoy/SportsPress/pulls/253","id":170819029,"html_url":"https://github.com/ThemeBoy/SportsPress/pull/253","diff_url":"https://github.com/ThemeBoy/SportsPress/pull/253.diff","patch_url":"https://github.com/ThemeBoy/SportsPress/pull/253.patch","issue_url":"https://api.github.com/repos/ThemeBoy/SportsPress/issues/253","number":253,"state":"open","locked":false,"title":"Make sure `wp_list_pluck()` is fed an array","user":{"login":"kadimi","id":225615,"avatar_url":"https://avatars3.githubusercontent.com/u/225615?v=4","gravatar_id":"","url":"https://api.github.com/users/kadimi","html_url":"https://github.com/kadimi","followers_url":"https://api.github.com/users/kadimi/followers","following_url":"https://api.github.com/users/kadimi/following{/other_user}","gists_url":"https://api.github.com/users/kadimi/gists{/gist_id}","starred_url":"https://api.github.com/users/kadimi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kadimi/subscriptions","organizations_url":"https://api.github.com/users/kadimi/orgs","repos_url":"https://api.github.com/users/kadimi/repos","events_url":"https://api.github.com/users/kadimi/events{/privacy}","received_events_url":"https://api.github.com/users/kadimi/received_events","type":"User","site_admin":false},"body":"Hello,\r\n\r\nThis fixes this error:\r\n\r\n` Warning: Invalid argument supplied for foreach() in /X/wp-includes/class-wp-list-util.php on line 148`\r\n\r\nWhat happens is that [`wp_list_pluck()`](https://developer.wordpress.org/reference/functions/wp_list_pluck/) expects an array but is fed the result of [`get_terms()`](https://developer.wordpress.org/reference/functions/get_terms/) which is not sanitized, and `get_terms()` doesn't always return an array, sometimes it returns a boolean (`false`) and sometimes an object (`WP_Error` instance).","created_at":"2018-02-22T17:41:26Z","updated_at":"2018-02-22T17:41:26Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/ThemeBoy/SportsPress/pulls/253/commits","review_comments_url":"https://api.github.com/repos/ThemeBoy/SportsPress/pulls/253/comments","review_comment_url":"https://api.github.com/repos/ThemeBoy/SportsPress/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ThemeBoy/SportsPress/issues/253/comments","statuses_url":"https://api.github.com/repos/ThemeBoy/SportsPress/statuses/4844945c2687af53d57277fdbc6aa49c1beec45d","head":{"label":"kadimi:patch-10","ref":"patch-10","sha":"4844945c2687af53d57277fdbc6aa49c1beec45d","user":{"login":"kadimi","id":225615,"avatar_url":"https://avatars3.githubusercontent.com/u/225615?v=4","gravatar_id":"","url":"https://api.github.com/users/kadimi","html_url":"https://github.com/kadimi","followers_url":"https://api.github.com/users/kadimi/followers","following_url":"https://api.github.com/users/kadimi/following{/other_user}","gists_url":"https://api.github.com/users/kadimi/gists{/gist_id}","starred_url":"https://api.github.com/users/kadimi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kadimi/subscriptions","organizations_url":"https://api.github.com/users/kadimi/orgs","repos_url":"https://api.github.com/users/kadimi/repos","events_url":"https://api.github.com/users/kadimi/events{/privacy}","received_events_url":"https://api.github.com/users/kadimi/received_events","type":"User","site_admin":false},"repo":{"id":117338484,"name":"SportsPress","full_name":"kadimi/SportsPress","owner":{"login":"kadimi","id":225615,"avatar_url":"https://avatars3.githubusercontent.com/u/225615?v=4","gravatar_id":"","url":"https://api.github.com/users/kadimi","html_url":"https://github.com/kadimi","followers_url":"https://api.github.com/users/kadimi/followers","following_url":"https://api.github.com/users/kadimi/following{/other_user}","gists_url":"https://api.github.com/users/kadimi/gists{/gist_id}","starred_url":"https://api.github.com/users/kadimi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kadimi/subscriptions","organizations_url":"https://api.github.com/users/kadimi/orgs","repos_url":"https://api.github.com/users/kadimi/repos","events_url":"https://api.github.com/users/kadimi/events{/privacy}","received_events_url":"https://api.github.com/users/kadimi/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kadimi/SportsPress","description":"An open source league statistics plugin for WordPress created by ThemeBoy.","fork":true,"url":"https://api.github.com/repos/kadimi/SportsPress","forks_url":"https://api.github.com/repos/kadimi/SportsPress/forks","keys_url":"https://api.github.com/repos/kadimi/SportsPress/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kadimi/SportsPress/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kadimi/SportsPress/teams","hooks_url":"https://api.github.com/repos/kadimi/SportsPress/hooks","issue_events_url":"https://api.github.com/repos/kadimi/SportsPress/issues/events{/number}","events_url":"https://api.github.com/repos/kadimi/SportsPress/events","assignees_url":"https://api.github.com/repos/kadimi/SportsPress/assignees{/user}","branches_url":"https://api.github.com/repos/kadimi/SportsPress/branches{/branch}","tags_url":"https://api.github.com/repos/kadimi/SportsPress/tags","blobs_url":"https://api.github.com/repos/kadimi/SportsPress/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kadimi/SportsPress/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kadimi/SportsPress/git/refs{/sha}","trees_url":"https://api.github.com/repos/kadimi/SportsPress/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kadimi/SportsPress/statuses/{sha}","languages_url":"https://api.github.com/repos/kadimi/SportsPress/languages","stargazers_url":"https://api.github.com/repos/kadimi/SportsPress/stargazers","contributors_url":"https://api.github.com/repos/kadimi/SportsPress/contributors","subscribers_url":"https://api.github.com/repos/kadimi/SportsPress/subscribers","subscription_url":"https://api.github.com/repos/kadimi/SportsPress/subscription","commits_url":"https://api.github.com/repos/kadimi/SportsPress/commits{/sha}","git_commits_url":"https://api.github.com/repos/kadimi/SportsPress/git/commits{/sha}","comments_url":"https://api.github.com/repos/kadimi/SportsPress/comments{/number}","issue_comment_url":"https://api.github.com/repos/kadimi/SportsPress/issues/comments{/number}","contents_url":"https://api.github.com/repos/kadimi/SportsPress/contents/{+path}","compare_url":"https://api.github.com/repos/kadimi/SportsPress/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kadimi/SportsPress/merges","archive_url":"https://api.github.com/repos/kadimi/SportsPress/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kadimi/SportsPress/downloads","issues_url":"https://api.github.com/repos/kadimi/SportsPress/issues{/number}","pulls_url":"https://api.github.com/repos/kadimi/SportsPress/pulls{/number}","milestones_url":"https://api.github.com/repos/kadimi/SportsPress/milestones{/number}","notifications_url":"https://api.github.com/repos/kadimi/SportsPress/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kadimi/SportsPress/labels{/name}","releases_url":"https://api.github.com/repos/kadimi/SportsPress/releases{/id}","deployments_url":"https://api.github.com/repos/kadimi/SportsPress/deployments","created_at":"2018-01-13T11:34:31Z","updated_at":"2018-01-13T11:34:34Z","pushed_at":"2018-02-22T17:35:41Z","git_url":"git://github.com/kadimi/SportsPress.git","ssh_url":"git@github.com:kadimi/SportsPress.git","clone_url":"https://github.com/kadimi/SportsPress.git","svn_url":"https://github.com/kadimi/SportsPress","homepage":"","size":15811,"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,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"ThemeBoy:master","ref":"master","sha":"87887a38aa1373a3c7f970693781f2b2efebfcf5","user":{"login":"ThemeBoy","id":483203,"avatar_url":"https://avatars3.githubusercontent.com/u/483203?v=4","gravatar_id":"","url":"https://api.github.com/users/ThemeBoy","html_url":"https://github.com/ThemeBoy","followers_url":"https://api.github.com/users/ThemeBoy/followers","following_url":"https://api.github.com/users/ThemeBoy/following{/other_user}","gists_url":"https://api.github.com/users/ThemeBoy/gists{/gist_id}","starred_url":"https://api.github.com/users/ThemeBoy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ThemeBoy/subscriptions","organizations_url":"https://api.github.com/users/ThemeBoy/orgs","repos_url":"https://api.github.com/users/ThemeBoy/repos","events_url":"https://api.github.com/users/ThemeBoy/events{/privacy}","received_events_url":"https://api.github.com/users/ThemeBoy/received_events","type":"User","site_admin":false},"repo":{"id":9785440,"name":"SportsPress","full_name":"ThemeBoy/SportsPress","owner":{"login":"ThemeBoy","id":483203,"avatar_url":"https://avatars3.githubusercontent.com/u/483203?v=4","gravatar_id":"","url":"https://api.github.com/users/ThemeBoy","html_url":"https://github.com/ThemeBoy","followers_url":"https://api.github.com/users/ThemeBoy/followers","following_url":"https://api.github.com/users/ThemeBoy/following{/other_user}","gists_url":"https://api.github.com/users/ThemeBoy/gists{/gist_id}","starred_url":"https://api.github.com/users/ThemeBoy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ThemeBoy/subscriptions","organizations_url":"https://api.github.com/users/ThemeBoy/orgs","repos_url":"https://api.github.com/users/ThemeBoy/repos","events_url":"https://api.github.com/users/ThemeBoy/events{/privacy}","received_events_url":"https://api.github.com/users/ThemeBoy/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ThemeBoy/SportsPress","description":"An open source league statistics plugin for WordPress created by ThemeBoy.","fork":false,"url":"https://api.github.com/repos/ThemeBoy/SportsPress","forks_url":"https://api.github.com/repos/ThemeBoy/SportsPress/forks","keys_url":"https://api.github.com/repos/ThemeBoy/SportsPress/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ThemeBoy/SportsPress/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ThemeBoy/SportsPress/teams","hooks_url":"https://api.github.com/repos/ThemeBoy/SportsPress/hooks","issue_events_url":"https://api.github.com/repos/ThemeBoy/SportsPress/issues/events{/number}","events_url":"https://api.github.com/repos/ThemeBoy/SportsPress/events","assignees_url":"https://api.github.com/repos/ThemeBoy/SportsPress/assignees{/user}","branches_url":"https://api.github.com/repos/ThemeBoy/SportsPress/branches{/branch}","tags_url":"https://api.github.com/repos/ThemeBoy/SportsPress/tags","blobs_url":"https://api.github.com/repos/ThemeBoy/SportsPress/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ThemeBoy/SportsPress/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ThemeBoy/SportsPress/git/refs{/sha}","trees_url":"https://api.github.com/repos/ThemeBoy/SportsPress/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ThemeBoy/SportsPress/statuses/{sha}","languages_url":"https://api.github.com/repos/ThemeBoy/SportsPress/languages","stargazers_url":"https://api.github.com/repos/ThemeBoy/SportsPress/stargazers","contributors_url":"https://api.github.com/repos/ThemeBoy/SportsPress/contributors","subscribers_url":"https://api.github.com/repos/ThemeBoy/SportsPress/subscribers","subscription_url":"https://api.github.com/repos/ThemeBoy/SportsPress/subscription","commits_url":"https://api.github.com/repos/ThemeBoy/SportsPress/commits{/sha}","git_commits_url":"https://api.github.com/repos/ThemeBoy/SportsPress/git/commits{/sha}","comments_url":"https://api.github.com/repos/ThemeBoy/SportsPress/comments{/number}","issue_comment_url":"https://api.github.com/repos/ThemeBoy/SportsPress/issues/comments{/number}","contents_url":"https://api.github.com/repos/ThemeBoy/SportsPress/contents/{+path}","compare_url":"https://api.github.com/repos/ThemeBoy/SportsPress/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ThemeBoy/SportsPress/merges","archive_url":"https://api.github.com/repos/ThemeBoy/SportsPress/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ThemeBoy/SportsPress/downloads","issues_url":"https://api.github.com/repos/ThemeBoy/SportsPress/issues{/number}","pulls_url":"https://api.github.com/repos/ThemeBoy/SportsPress/pulls{/number}","milestones_url":"https://api.github.com/repos/ThemeBoy/SportsPress/milestones{/number}","notifications_url":"https://api.github.com/repos/ThemeBoy/SportsPress/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ThemeBoy/SportsPress/labels{/name}","releases_url":"https://api.github.com/repos/ThemeBoy/SportsPress/releases{/id}","deployments_url":"https://api.github.com/repos/ThemeBoy/SportsPress/deployments","created_at":"2013-05-01T04:08:35Z","updated_at":"2018-02-19T02:28:47Z","pushed_at":"2018-02-21T12:10:09Z","git_url":"git://github.com/ThemeBoy/SportsPress.git","ssh_url":"git@github.com:ThemeBoy/SportsPress.git","clone_url":"https://github.com/ThemeBoy/SportsPress.git","svn_url":"https://github.com/ThemeBoy/SportsPress","homepage":"","size":15789,"stargazers_count":76,"watchers_count":76,"language":"PHP","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":61,"mirror_url":null,"archived":false,"open_issues_count":124,"license":{"key":"other","name":"Other","spdx_id":null,"url":null},"forks":61,"open_issues":124,"watchers":76,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ThemeBoy/SportsPress/pulls/253"},"html":{"href":"https://github.com/ThemeBoy/SportsPress/pull/253"},"issue":{"href":"https://api.github.com/repos/ThemeBoy/SportsPress/issues/253"},"comments":{"href":"https://api.github.com/repos/ThemeBoy/SportsPress/issues/253/comments"},"review_comments":{"href":"https://api.github.com/repos/ThemeBoy/SportsPress/pulls/253/comments"},"review_comment":{"href":"https://api.github.com/repos/ThemeBoy/SportsPress/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ThemeBoy/SportsPress/pulls/253/commits"},"statuses":{"href":"https://api.github.com/repos/ThemeBoy/SportsPress/statuses/4844945c2687af53d57277fdbc6aa49c1beec45d"}},"author_association":"CONTRIBUTOR","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":true,"commits":1,"additions":2,"deletions":2,"changed_files":1}}
{"actor":{"display_login":"kadimi"}}