{"action":"created","comment":{"url":"https://api.github.com/repos/Automattic/jetpack/pulls/comments/200406633","pull_request_review_id":134717249,"id":200406633,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIwMDQwNjYzMw==","diff_hunk":"@@ -388,8 +388,8 @@ private function record_event( $stat_name, $event_action, $event_properties = ar\n \n \t\t\t// `bumps_stats_extra` only exists on .com\n \t\t\tif ( function_exists( 'bump_stats_extras' ) ) {\n-\t\t\t\trequire_lib( 'tracks/client' );\n-\t\t\t\ttracks_record_event( $current_user, 'simple_payments_button_' . $event_action, $event_properties );\n+\t\t\t\tjetpack_require_lib( 'tracks/client' );\n+\t\t\t\tjetpack_tracks_record_event( $current_user, 'simple_payments_button_' . $event_action, $event_properties );","path":"modules/widgets/simple-payments.php","position":31,"original_position":31,"commit_id":"d51304ad74fa17b7d5f313d868f8384e47e16e16","original_commit_id":"d51304ad74fa17b7d5f313d868f8384e47e16e16","user":{"login":"rodrigoi","id":233601,"node_id":"MDQ6VXNlcjIzMzYwMQ==","avatar_url":"https://avatars2.githubusercontent.com/u/233601?v=4","gravatar_id":"","url":"https://api.github.com/users/rodrigoi","html_url":"https://github.com/rodrigoi","followers_url":"https://api.github.com/users/rodrigoi/followers","following_url":"https://api.github.com/users/rodrigoi/following{/other_user}","gists_url":"https://api.github.com/users/rodrigoi/gists{/gist_id}","starred_url":"https://api.github.com/users/rodrigoi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rodrigoi/subscriptions","organizations_url":"https://api.github.com/users/rodrigoi/orgs","repos_url":"https://api.github.com/users/rodrigoi/repos","events_url":"https://api.github.com/users/rodrigoi/events{/privacy}","received_events_url":"https://api.github.com/users/rodrigoi/received_events","type":"User","site_admin":false},"body":"this block of code is for WordPress.com, where `jetpack_*` functions are not available.","created_at":"2018-07-05T16:01:27Z","updated_at":"2018-07-05T16:01:36Z","html_url":"https://github.com/Automattic/jetpack/pull/9863#discussion_r200406633","pull_request_url":"https://api.github.com/repos/Automattic/jetpack/pulls/9863","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/Automattic/jetpack/pulls/comments/200406633"},"html":{"href":"https://github.com/Automattic/jetpack/pull/9863#discussion_r200406633"},"pull_request":{"href":"https://api.github.com/repos/Automattic/jetpack/pulls/9863"}}},"pull_request":{"url":"https://api.github.com/repos/Automattic/jetpack/pulls/9863","id":199237284,"node_id":"MDExOlB1bGxSZXF1ZXN0MTk5MjM3Mjg0","html_url":"https://github.com/Automattic/jetpack/pull/9863","diff_url":"https://github.com/Automattic/jetpack/pull/9863.diff","patch_url":"https://github.com/Automattic/jetpack/pull/9863.patch","issue_url":"https://api.github.com/repos/Automattic/jetpack/issues/9863","number":9863,"state":"open","locked":false,"title":"Widgets - Simple Payments: fix a few issues","user":{"login":"eliorivero","id":1041600,"node_id":"MDQ6VXNlcjEwNDE2MDA=","avatar_url":"https://avatars3.githubusercontent.com/u/1041600?v=4","gravatar_id":"","url":"https://api.github.com/users/eliorivero","html_url":"https://github.com/eliorivero","followers_url":"https://api.github.com/users/eliorivero/followers","following_url":"https://api.github.com/users/eliorivero/following{/other_user}","gists_url":"https://api.github.com/users/eliorivero/gists{/gist_id}","starred_url":"https://api.github.com/users/eliorivero/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eliorivero/subscriptions","organizations_url":"https://api.github.com/users/eliorivero/orgs","repos_url":"https://api.github.com/users/eliorivero/repos","events_url":"https://api.github.com/users/eliorivero/events{/privacy}","received_events_url":"https://api.github.com/users/eliorivero/received_events","type":"User","site_admin":false},"body":"\r\nFollow-up to #9859 \r\n\r\n#### Changes proposed in this Pull Request:\r\n\r\n- fix syntax error `$errors.add( 'illegal_params' );`\r\n- add missing message parameter in `->add`\r\n- add missing `jetpack` translation domain\r\n- replace undefined functions `require_lib` and `tracks_record_event`\r\n\r\n#### Testing instructions\r\n\r\nTest with PHP 5.2 and ensure the widget works normally.\r\n\r\n#### Proposed changelog entry for your changes:\r\n\r\nPHP 5.2 Compatibility for Simple Payments Widget","created_at":"2018-07-04T12:39:17Z","updated_at":"2018-07-05T16:01:36Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b9a54e6d92ba3ecf6015157380c891c40a89f4f2","assignee":null,"assignees":[],"requested_reviewers":[{"login":"mdawaffe","id":125994,"node_id":"MDQ6VXNlcjEyNTk5NA==","avatar_url":"https://avatars0.githubusercontent.com/u/125994?v=4","gravatar_id":"","url":"https://api.github.com/users/mdawaffe","html_url":"https://github.com/mdawaffe","followers_url":"https://api.github.com/users/mdawaffe/followers","following_url":"https://api.github.com/users/mdawaffe/following{/other_user}","gists_url":"https://api.github.com/users/mdawaffe/gists{/gist_id}","starred_url":"https://api.github.com/users/mdawaffe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mdawaffe/subscriptions","organizations_url":"https://api.github.com/users/mdawaffe/orgs","repos_url":"https://api.github.com/users/mdawaffe/repos","events_url":"https://api.github.com/users/mdawaffe/events{/privacy}","received_events_url":"https://api.github.com/users/mdawaffe/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[{"id":199076981,"node_id":"MDU6TGFiZWwxOTkwNzY5ODE=","url":"https://api.github.com/repos/Automattic/jetpack/labels/[Status]%20Ready%20to%20Merge","name":"[Status] Ready to Merge","color":"009800","default":false},{"id":70896532,"node_id":"MDU6TGFiZWw3MDg5NjUzMg==","url":"https://api.github.com/repos/Automattic/jetpack/labels/[Type]%20Bug","name":"[Type] Bug","color":"fc2929","default":false}],"milestone":{"url":"https://api.github.com/repos/Automattic/jetpack/milestones/105","html_url":"https://github.com/Automattic/jetpack/milestone/105","labels_url":"https://api.github.com/repos/Automattic/jetpack/milestones/105/labels","id":3453972,"node_id":"MDk6TWlsZXN0b25lMzQ1Mzk3Mg==","number":105,"title":"6.4","description":"","creator":{"login":"oskosk","id":746152,"node_id":"MDQ6VXNlcjc0NjE1Mg==","avatar_url":"https://avatars2.githubusercontent.com/u/746152?v=4","gravatar_id":"","url":"https://api.github.com/users/oskosk","html_url":"https://github.com/oskosk","followers_url":"https://api.github.com/users/oskosk/followers","following_url":"https://api.github.com/users/oskosk/following{/other_user}","gists_url":"https://api.github.com/users/oskosk/gists{/gist_id}","starred_url":"https://api.github.com/users/oskosk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oskosk/subscriptions","organizations_url":"https://api.github.com/users/oskosk/orgs","repos_url":"https://api.github.com/users/oskosk/repos","events_url":"https://api.github.com/users/oskosk/events{/privacy}","received_events_url":"https://api.github.com/users/oskosk/received_events","type":"User","site_admin":false},"open_issues":24,"closed_issues":8,"state":"open","created_at":"2018-06-26T18:10:01Z","updated_at":"2018-07-05T10:07:42Z","due_on":"2018-07-31T07:00:00Z","closed_at":null},"commits_url":"https://api.github.com/repos/Automattic/jetpack/pulls/9863/commits","review_comments_url":"https://api.github.com/repos/Automattic/jetpack/pulls/9863/comments","review_comment_url":"https://api.github.com/repos/Automattic/jetpack/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Automattic/jetpack/issues/9863/comments","statuses_url":"https://api.github.com/repos/Automattic/jetpack/statuses/d51304ad74fa17b7d5f313d868f8384e47e16e16","head":{"label":"Automattic:fix/simple-payments-widget","ref":"fix/simple-payments-widget","sha":"d51304ad74fa17b7d5f313d868f8384e47e16e16","user":{"login":"Automattic","id":887802,"node_id":"MDEyOk9yZ2FuaXphdGlvbjg4NzgwMg==","avatar_url":"https://avatars1.githubusercontent.com/u/887802?v=4","gravatar_id":"","url":"https://api.github.com/users/Automattic","html_url":"https://github.com/Automattic","followers_url":"https://api.github.com/users/Automattic/followers","following_url":"https://api.github.com/users/Automattic/following{/other_user}","gists_url":"https://api.github.com/users/Automattic/gists{/gist_id}","starred_url":"https://api.github.com/users/Automattic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Automattic/subscriptions","organizations_url":"https://api.github.com/users/Automattic/orgs","repos_url":"https://api.github.com/users/Automattic/repos","events_url":"https://api.github.com/users/Automattic/events{/privacy}","received_events_url":"https://api.github.com/users/Automattic/received_events","type":"Organization","site_admin":false},"repo":{"id":15231212,"node_id":"MDEwOlJlcG9zaXRvcnkxNTIzMTIxMg==","name":"jetpack","full_name":"Automattic/jetpack","owner":{"login":"Automattic","id":887802,"node_id":"MDEyOk9yZ2FuaXphdGlvbjg4NzgwMg==","avatar_url":"https://avatars1.githubusercontent.com/u/887802?v=4","gravatar_id":"","url":"https://api.github.com/users/Automattic","html_url":"https://github.com/Automattic","followers_url":"https://api.github.com/users/Automattic/followers","following_url":"https://api.github.com/users/Automattic/following{/other_user}","gists_url":"https://api.github.com/users/Automattic/gists{/gist_id}","starred_url":"https://api.github.com/users/Automattic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Automattic/subscriptions","organizations_url":"https://api.github.com/users/Automattic/orgs","repos_url":"https://api.github.com/users/Automattic/repos","events_url":"https://api.github.com/users/Automattic/events{/privacy}","received_events_url":"https://api.github.com/users/Automattic/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Automattic/jetpack","description":"Increase your traffic, view your stats, speed up your site, and protect yourself from hackers with Jetpack.","fork":false,"url":"https://api.github.com/repos/Automattic/jetpack","forks_url":"https://api.github.com/repos/Automattic/jetpack/forks","keys_url":"https://api.github.com/repos/Automattic/jetpack/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Automattic/jetpack/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Automattic/jetpack/teams","hooks_url":"https://api.github.com/repos/Automattic/jetpack/hooks","issue_events_url":"https://api.github.com/repos/Automattic/jetpack/issues/events{/number}","events_url":"https://api.github.com/repos/Automattic/jetpack/events","assignees_url":"https://api.github.com/repos/Automattic/jetpack/assignees{/user}","branches_url":"https://api.github.com/repos/Automattic/jetpack/branches{/branch}","tags_url":"https://api.github.com/repos/Automattic/jetpack/tags","blobs_url":"https://api.github.com/repos/Automattic/jetpack/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Automattic/jetpack/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Automattic/jetpack/git/refs{/sha}","trees_url":"https://api.github.com/repos/Automattic/jetpack/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Automattic/jetpack/statuses/{sha}","languages_url":"https://api.github.com/repos/Automattic/jetpack/languages","stargazers_url":"https://api.github.com/repos/Automattic/jetpack/stargazers","contributors_url":"https://api.github.com/repos/Automattic/jetpack/contributors","subscribers_url":"https://api.github.com/repos/Automattic/jetpack/subscribers","subscription_url":"https://api.github.com/repos/Automattic/jetpack/subscription","commits_url":"https://api.github.com/repos/Automattic/jetpack/commits{/sha}","git_commits_url":"https://api.github.com/repos/Automattic/jetpack/git/commits{/sha}","comments_url":"https://api.github.com/repos/Automattic/jetpack/comments{/number}","issue_comment_url":"https://api.github.com/repos/Automattic/jetpack/issues/comments{/number}","contents_url":"https://api.github.com/repos/Automattic/jetpack/contents/{+path}","compare_url":"https://api.github.com/repos/Automattic/jetpack/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Automattic/jetpack/merges","archive_url":"https://api.github.com/repos/Automattic/jetpack/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Automattic/jetpack/downloads","issues_url":"https://api.github.com/repos/Automattic/jetpack/issues{/number}","pulls_url":"https://api.github.com/repos/Automattic/jetpack/pulls{/number}","milestones_url":"https://api.github.com/repos/Automattic/jetpack/milestones{/number}","notifications_url":"https://api.github.com/repos/Automattic/jetpack/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Automattic/jetpack/labels{/name}","releases_url":"https://api.github.com/repos/Automattic/jetpack/releases{/id}","deployments_url":"https://api.github.com/repos/Automattic/jetpack/deployments","created_at":"2013-12-16T16:43:01Z","updated_at":"2018-07-04T16:55:52Z","pushed_at":"2018-07-05T15:27:32Z","git_url":"git://github.com/Automattic/jetpack.git","ssh_url":"git@github.com:Automattic/jetpack.git","clone_url":"https://github.com/Automattic/jetpack.git","svn_url":"https://github.com/Automattic/jetpack","homepage":"https://jetpack.com/","size":212888,"stargazers_count":806,"watchers_count":806,"language":"PHP","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":527,"mirror_url":null,"archived":false,"open_issues_count":1102,"license":{"key":"other","name":"Other","spdx_id":null,"url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":527,"open_issues":1102,"watchers":806,"default_branch":"master"}},"base":{"label":"Automattic:master","ref":"master","sha":"071912304b61e264751beb67c6fa34c04e02a468","user":{"login":"Automattic","id":887802,"node_id":"MDEyOk9yZ2FuaXphdGlvbjg4NzgwMg==","avatar_url":"https://avatars1.githubusercontent.com/u/887802?v=4","gravatar_id":"","url":"https://api.github.com/users/Automattic","html_url":"https://github.com/Automattic","followers_url":"https://api.github.com/users/Automattic/followers","following_url":"https://api.github.com/users/Automattic/following{/other_user}","gists_url":"https://api.github.com/users/Automattic/gists{/gist_id}","starred_url":"https://api.github.com/users/Automattic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Automattic/subscriptions","organizations_url":"https://api.github.com/users/Automattic/orgs","repos_url":"https://api.github.com/users/Automattic/repos","events_url":"https://api.github.com/users/Automattic/events{/privacy}","received_events_url":"https://api.github.com/users/Automattic/received_events","type":"Organization","site_admin":false},"repo":{"id":15231212,"node_id":"MDEwOlJlcG9zaXRvcnkxNTIzMTIxMg==","name":"jetpack","full_name":"Automattic/jetpack","owner":{"login":"Automattic","id":887802,"node_id":"MDEyOk9yZ2FuaXphdGlvbjg4NzgwMg==","avatar_url":"https://avatars1.githubusercontent.com/u/887802?v=4","gravatar_id":"","url":"https://api.github.com/users/Automattic","html_url":"https://github.com/Automattic","followers_url":"https://api.github.com/users/Automattic/followers","following_url":"https://api.github.com/users/Automattic/following{/other_user}","gists_url":"https://api.github.com/users/Automattic/gists{/gist_id}","starred_url":"https://api.github.com/users/Automattic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Automattic/subscriptions","organizations_url":"https://api.github.com/users/Automattic/orgs","repos_url":"https://api.github.com/users/Automattic/repos","events_url":"https://api.github.com/users/Automattic/events{/privacy}","received_events_url":"https://api.github.com/users/Automattic/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Automattic/jetpack","description":"Increase your traffic, view your stats, speed up your site, and protect yourself from hackers with Jetpack.","fork":false,"url":"https://api.github.com/repos/Automattic/jetpack","forks_url":"https://api.github.com/repos/Automattic/jetpack/forks","keys_url":"https://api.github.com/repos/Automattic/jetpack/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Automattic/jetpack/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Automattic/jetpack/teams","hooks_url":"https://api.github.com/repos/Automattic/jetpack/hooks","issue_events_url":"https://api.github.com/repos/Automattic/jetpack/issues/events{/number}","events_url":"https://api.github.com/repos/Automattic/jetpack/events","assignees_url":"https://api.github.com/repos/Automattic/jetpack/assignees{/user}","branches_url":"https://api.github.com/repos/Automattic/jetpack/branches{/branch}","tags_url":"https://api.github.com/repos/Automattic/jetpack/tags","blobs_url":"https://api.github.com/repos/Automattic/jetpack/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Automattic/jetpack/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Automattic/jetpack/git/refs{/sha}","trees_url":"https://api.github.com/repos/Automattic/jetpack/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Automattic/jetpack/statuses/{sha}","languages_url":"https://api.github.com/repos/Automattic/jetpack/languages","stargazers_url":"https://api.github.com/repos/Automattic/jetpack/stargazers","contributors_url":"https://api.github.com/repos/Automattic/jetpack/contributors","subscribers_url":"https://api.github.com/repos/Automattic/jetpack/subscribers","subscription_url":"https://api.github.com/repos/Automattic/jetpack/subscription","commits_url":"https://api.github.com/repos/Automattic/jetpack/commits{/sha}","git_commits_url":"https://api.github.com/repos/Automattic/jetpack/git/commits{/sha}","comments_url":"https://api.github.com/repos/Automattic/jetpack/comments{/number}","issue_comment_url":"https://api.github.com/repos/Automattic/jetpack/issues/comments{/number}","contents_url":"https://api.github.com/repos/Automattic/jetpack/contents/{+path}","compare_url":"https://api.github.com/repos/Automattic/jetpack/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Automattic/jetpack/merges","archive_url":"https://api.github.com/repos/Automattic/jetpack/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Automattic/jetpack/downloads","issues_url":"https://api.github.com/repos/Automattic/jetpack/issues{/number}","pulls_url":"https://api.github.com/repos/Automattic/jetpack/pulls{/number}","milestones_url":"https://api.github.com/repos/Automattic/jetpack/milestones{/number}","notifications_url":"https://api.github.com/repos/Automattic/jetpack/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Automattic/jetpack/labels{/name}","releases_url":"https://api.github.com/repos/Automattic/jetpack/releases{/id}","deployments_url":"https://api.github.com/repos/Automattic/jetpack/deployments","created_at":"2013-12-16T16:43:01Z","updated_at":"2018-07-04T16:55:52Z","pushed_at":"2018-07-05T15:27:32Z","git_url":"git://github.com/Automattic/jetpack.git","ssh_url":"git@github.com:Automattic/jetpack.git","clone_url":"https://github.com/Automattic/jetpack.git","svn_url":"https://github.com/Automattic/jetpack","homepage":"https://jetpack.com/","size":212888,"stargazers_count":806,"watchers_count":806,"language":"PHP","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":527,"mirror_url":null,"archived":false,"open_issues_count":1102,"license":{"key":"other","name":"Other","spdx_id":null,"url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":527,"open_issues":1102,"watchers":806,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Automattic/jetpack/pulls/9863"},"html":{"href":"https://github.com/Automattic/jetpack/pull/9863"},"issue":{"href":"https://api.github.com/repos/Automattic/jetpack/issues/9863"},"comments":{"href":"https://api.github.com/repos/Automattic/jetpack/issues/9863/comments"},"review_comments":{"href":"https://api.github.com/repos/Automattic/jetpack/pulls/9863/comments"},"review_comment":{"href":"https://api.github.com/repos/Automattic/jetpack/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Automattic/jetpack/pulls/9863/commits"},"statuses":{"href":"https://api.github.com/repos/Automattic/jetpack/statuses/d51304ad74fa17b7d5f313d868f8384e47e16e16"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"rodrigoi"}}