{"action":"created","comment":{"url":"https://api.github.com/repos/woocommerce/woocommerce/pulls/comments/151836001","pull_request_review_id":77614310,"id":151836001,"diff_hunk":"@@ -196,54 +196,13 @@ function wc_paying_customer( $order_id ) {\n  * @return bool\n  */\n function wc_customer_bought_product( $customer_email, $user_id, $product_id ) {\n-\tglobal $wpdb;\n-\n-\t$result = apply_filters( 'woocommerce_pre_customer_bought_product', null, $customer_email, $user_id, $product_id );\n+\twc_deprecated_function( 'WC_Order_Product_Lookup_Helper::is_product_purchased', '3.3' );","path":"includes/wc-user-functions.php","position":7,"original_position":7,"commit_id":"c857b25118c6262925b9bfc6d1b861a31ddeca93","original_commit_id":"c857b25118c6262925b9bfc6d1b861a31ddeca93","user":{"login":"bor0","id":1620929,"avatar_url":"https://avatars3.githubusercontent.com/u/1620929?v=4","gravatar_id":"","url":"https://api.github.com/users/bor0","html_url":"https://github.com/bor0","followers_url":"https://api.github.com/users/bor0/followers","following_url":"https://api.github.com/users/bor0/following{/other_user}","gists_url":"https://api.github.com/users/bor0/gists{/gist_id}","starred_url":"https://api.github.com/users/bor0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bor0/subscriptions","organizations_url":"https://api.github.com/users/bor0/orgs","repos_url":"https://api.github.com/users/bor0/repos","events_url":"https://api.github.com/users/bor0/events{/privacy}","received_events_url":"https://api.github.com/users/bor0/received_events","type":"User","site_admin":false},"body":"I don't know if it's wise to deprecate these, given `WC_Order_Product_Lookup_Helper::is_product_purchased` is a temporary solution.\r\n\r\nPing @kloon @mikejolley","created_at":"2017-11-18T11:45:46Z","updated_at":"2017-11-18T11:45:47Z","html_url":"https://github.com/woocommerce/woocommerce/pull/17475#discussion_r151836001","pull_request_url":"https://api.github.com/repos/woocommerce/woocommerce/pulls/17475","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/woocommerce/woocommerce/pulls/comments/151836001"},"html":{"href":"https://github.com/woocommerce/woocommerce/pull/17475#discussion_r151836001"},"pull_request":{"href":"https://api.github.com/repos/woocommerce/woocommerce/pulls/17475"}}},"pull_request":{"url":"https://api.github.com/repos/woocommerce/woocommerce/pulls/17475","id":149810498,"html_url":"https://github.com/woocommerce/woocommerce/pull/17475","diff_url":"https://github.com/woocommerce/woocommerce/pull/17475.diff","patch_url":"https://github.com/woocommerce/woocommerce/pull/17475.patch","issue_url":"https://api.github.com/repos/woocommerce/woocommerce/issues/17475","number":17475,"state":"open","locked":false,"title":"Refactor how orders & products are linked to customers","user":{"login":"bor0","id":1620929,"avatar_url":"https://avatars3.githubusercontent.com/u/1620929?v=4","gravatar_id":"","url":"https://api.github.com/users/bor0","html_url":"https://github.com/bor0","followers_url":"https://api.github.com/users/bor0/followers","following_url":"https://api.github.com/users/bor0/following{/other_user}","gists_url":"https://api.github.com/users/bor0/gists{/gist_id}","starred_url":"https://api.github.com/users/bor0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bor0/subscriptions","organizations_url":"https://api.github.com/users/bor0/orgs","repos_url":"https://api.github.com/users/bor0/repos","events_url":"https://api.github.com/users/bor0/events{/privacy}","received_events_url":"https://api.github.com/users/bor0/received_events","type":"User","site_admin":false},"body":"Fixes #16604.","created_at":"2017-10-31T14:58:38Z","updated_at":"2017-11-18T11:45:47Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2b8f1a62a1a48a58ee836d65d2249c40b82da8bc","assignee":null,"assignees":[],"requested_reviewers":[{"login":"mikejolley","id":90977,"avatar_url":"https://avatars2.githubusercontent.com/u/90977?v=4","gravatar_id":"","url":"https://api.github.com/users/mikejolley","html_url":"https://github.com/mikejolley","followers_url":"https://api.github.com/users/mikejolley/followers","following_url":"https://api.github.com/users/mikejolley/following{/other_user}","gists_url":"https://api.github.com/users/mikejolley/gists{/gist_id}","starred_url":"https://api.github.com/users/mikejolley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikejolley/subscriptions","organizations_url":"https://api.github.com/users/mikejolley/orgs","repos_url":"https://api.github.com/users/mikejolley/repos","events_url":"https://api.github.com/users/mikejolley/events{/privacy}","received_events_url":"https://api.github.com/users/mikejolley/received_events","type":"User","site_admin":false},{"login":"claudiosanches","id":1264099,"avatar_url":"https://avatars3.githubusercontent.com/u/1264099?v=4","gravatar_id":"","url":"https://api.github.com/users/claudiosanches","html_url":"https://github.com/claudiosanches","followers_url":"https://api.github.com/users/claudiosanches/followers","following_url":"https://api.github.com/users/claudiosanches/following{/other_user}","gists_url":"https://api.github.com/users/claudiosanches/gists{/gist_id}","starred_url":"https://api.github.com/users/claudiosanches/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/claudiosanches/subscriptions","organizations_url":"https://api.github.com/users/claudiosanches/orgs","repos_url":"https://api.github.com/users/claudiosanches/repos","events_url":"https://api.github.com/users/claudiosanches/events{/privacy}","received_events_url":"https://api.github.com/users/claudiosanches/received_events","type":"User","site_admin":false},{"login":"claudiulodro","id":7317227,"avatar_url":"https://avatars3.githubusercontent.com/u/7317227?v=4","gravatar_id":"","url":"https://api.github.com/users/claudiulodro","html_url":"https://github.com/claudiulodro","followers_url":"https://api.github.com/users/claudiulodro/followers","following_url":"https://api.github.com/users/claudiulodro/following{/other_user}","gists_url":"https://api.github.com/users/claudiulodro/gists{/gist_id}","starred_url":"https://api.github.com/users/claudiulodro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/claudiulodro/subscriptions","organizations_url":"https://api.github.com/users/claudiulodro/orgs","repos_url":"https://api.github.com/users/claudiulodro/repos","events_url":"https://api.github.com/users/claudiulodro/events{/privacy}","received_events_url":"https://api.github.com/users/claudiulodro/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/woocommerce/woocommerce/pulls/17475/commits","review_comments_url":"https://api.github.com/repos/woocommerce/woocommerce/pulls/17475/comments","review_comment_url":"https://api.github.com/repos/woocommerce/woocommerce/pulls/comments{/number}","comments_url":"https://api.github.com/repos/woocommerce/woocommerce/issues/17475/comments","statuses_url":"https://api.github.com/repos/woocommerce/woocommerce/statuses/c857b25118c6262925b9bfc6d1b861a31ddeca93","head":{"label":"woocommerce:tweak/issue-16604","ref":"tweak/issue-16604","sha":"c857b25118c6262925b9bfc6d1b861a31ddeca93","user":{"login":"woocommerce","id":473596,"avatar_url":"https://avatars0.githubusercontent.com/u/473596?v=4","gravatar_id":"","url":"https://api.github.com/users/woocommerce","html_url":"https://github.com/woocommerce","followers_url":"https://api.github.com/users/woocommerce/followers","following_url":"https://api.github.com/users/woocommerce/following{/other_user}","gists_url":"https://api.github.com/users/woocommerce/gists{/gist_id}","starred_url":"https://api.github.com/users/woocommerce/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/woocommerce/subscriptions","organizations_url":"https://api.github.com/users/woocommerce/orgs","repos_url":"https://api.github.com/users/woocommerce/repos","events_url":"https://api.github.com/users/woocommerce/events{/privacy}","received_events_url":"https://api.github.com/users/woocommerce/received_events","type":"Organization","site_admin":false},"repo":{"id":2179920,"name":"woocommerce","full_name":"woocommerce/woocommerce","owner":{"login":"woocommerce","id":473596,"avatar_url":"https://avatars0.githubusercontent.com/u/473596?v=4","gravatar_id":"","url":"https://api.github.com/users/woocommerce","html_url":"https://github.com/woocommerce","followers_url":"https://api.github.com/users/woocommerce/followers","following_url":"https://api.github.com/users/woocommerce/following{/other_user}","gists_url":"https://api.github.com/users/woocommerce/gists{/gist_id}","starred_url":"https://api.github.com/users/woocommerce/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/woocommerce/subscriptions","organizations_url":"https://api.github.com/users/woocommerce/orgs","repos_url":"https://api.github.com/users/woocommerce/repos","events_url":"https://api.github.com/users/woocommerce/events{/privacy}","received_events_url":"https://api.github.com/users/woocommerce/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/woocommerce/woocommerce","description":"An open source eCommerce plugin for WordPress.","fork":false,"url":"https://api.github.com/repos/woocommerce/woocommerce","forks_url":"https://api.github.com/repos/woocommerce/woocommerce/forks","keys_url":"https://api.github.com/repos/woocommerce/woocommerce/keys{/key_id}","collaborators_url":"https://api.github.com/repos/woocommerce/woocommerce/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/woocommerce/woocommerce/teams","hooks_url":"https://api.github.com/repos/woocommerce/woocommerce/hooks","issue_events_url":"https://api.github.com/repos/woocommerce/woocommerce/issues/events{/number}","events_url":"https://api.github.com/repos/woocommerce/woocommerce/events","assignees_url":"https://api.github.com/repos/woocommerce/woocommerce/assignees{/user}","branches_url":"https://api.github.com/repos/woocommerce/woocommerce/branches{/branch}","tags_url":"https://api.github.com/repos/woocommerce/woocommerce/tags","blobs_url":"https://api.github.com/repos/woocommerce/woocommerce/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/woocommerce/woocommerce/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/woocommerce/woocommerce/git/refs{/sha}","trees_url":"https://api.github.com/repos/woocommerce/woocommerce/git/trees{/sha}","statuses_url":"https://api.github.com/repos/woocommerce/woocommerce/statuses/{sha}","languages_url":"https://api.github.com/repos/woocommerce/woocommerce/languages","stargazers_url":"https://api.github.com/repos/woocommerce/woocommerce/stargazers","contributors_url":"https://api.github.com/repos/woocommerce/woocommerce/contributors","subscribers_url":"https://api.github.com/repos/woocommerce/woocommerce/subscribers","subscription_url":"https://api.github.com/repos/woocommerce/woocommerce/subscription","commits_url":"https://api.github.com/repos/woocommerce/woocommerce/commits{/sha}","git_commits_url":"https://api.github.com/repos/woocommerce/woocommerce/git/commits{/sha}","comments_url":"https://api.github.com/repos/woocommerce/woocommerce/comments{/number}","issue_comment_url":"https://api.github.com/repos/woocommerce/woocommerce/issues/comments{/number}","contents_url":"https://api.github.com/repos/woocommerce/woocommerce/contents/{+path}","compare_url":"https://api.github.com/repos/woocommerce/woocommerce/compare/{base}...{head}","merges_url":"https://api.github.com/repos/woocommerce/woocommerce/merges","archive_url":"https://api.github.com/repos/woocommerce/woocommerce/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/woocommerce/woocommerce/downloads","issues_url":"https://api.github.com/repos/woocommerce/woocommerce/issues{/number}","pulls_url":"https://api.github.com/repos/woocommerce/woocommerce/pulls{/number}","milestones_url":"https://api.github.com/repos/woocommerce/woocommerce/milestones{/number}","notifications_url":"https://api.github.com/repos/woocommerce/woocommerce/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/woocommerce/woocommerce/labels{/name}","releases_url":"https://api.github.com/repos/woocommerce/woocommerce/releases{/id}","deployments_url":"https://api.github.com/repos/woocommerce/woocommerce/deployments","created_at":"2011-08-09T15:12:11Z","updated_at":"2017-11-18T11:12:30Z","pushed_at":"2017-11-18T11:44:32Z","git_url":"git://github.com/woocommerce/woocommerce.git","ssh_url":"git@github.com:woocommerce/woocommerce.git","clone_url":"https://github.com/woocommerce/woocommerce.git","svn_url":"https://github.com/woocommerce/woocommerce","homepage":"http://www.woocommerce.com/","size":135706,"stargazers_count":3870,"watchers_count":3870,"language":"PHP","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":3473,"mirror_url":null,"archived":false,"open_issues_count":83,"forks":3473,"open_issues":83,"watchers":3870,"default_branch":"master"}},"base":{"label":"woocommerce:master","ref":"master","sha":"72e078e83eb61792bdfc9eb598ca3d9e07b48349","user":{"login":"woocommerce","id":473596,"avatar_url":"https://avatars0.githubusercontent.com/u/473596?v=4","gravatar_id":"","url":"https://api.github.com/users/woocommerce","html_url":"https://github.com/woocommerce","followers_url":"https://api.github.com/users/woocommerce/followers","following_url":"https://api.github.com/users/woocommerce/following{/other_user}","gists_url":"https://api.github.com/users/woocommerce/gists{/gist_id}","starred_url":"https://api.github.com/users/woocommerce/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/woocommerce/subscriptions","organizations_url":"https://api.github.com/users/woocommerce/orgs","repos_url":"https://api.github.com/users/woocommerce/repos","events_url":"https://api.github.com/users/woocommerce/events{/privacy}","received_events_url":"https://api.github.com/users/woocommerce/received_events","type":"Organization","site_admin":false},"repo":{"id":2179920,"name":"woocommerce","full_name":"woocommerce/woocommerce","owner":{"login":"woocommerce","id":473596,"avatar_url":"https://avatars0.githubusercontent.com/u/473596?v=4","gravatar_id":"","url":"https://api.github.com/users/woocommerce","html_url":"https://github.com/woocommerce","followers_url":"https://api.github.com/users/woocommerce/followers","following_url":"https://api.github.com/users/woocommerce/following{/other_user}","gists_url":"https://api.github.com/users/woocommerce/gists{/gist_id}","starred_url":"https://api.github.com/users/woocommerce/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/woocommerce/subscriptions","organizations_url":"https://api.github.com/users/woocommerce/orgs","repos_url":"https://api.github.com/users/woocommerce/repos","events_url":"https://api.github.com/users/woocommerce/events{/privacy}","received_events_url":"https://api.github.com/users/woocommerce/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/woocommerce/woocommerce","description":"An open source eCommerce plugin for WordPress.","fork":false,"url":"https://api.github.com/repos/woocommerce/woocommerce","forks_url":"https://api.github.com/repos/woocommerce/woocommerce/forks","keys_url":"https://api.github.com/repos/woocommerce/woocommerce/keys{/key_id}","collaborators_url":"https://api.github.com/repos/woocommerce/woocommerce/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/woocommerce/woocommerce/teams","hooks_url":"https://api.github.com/repos/woocommerce/woocommerce/hooks","issue_events_url":"https://api.github.com/repos/woocommerce/woocommerce/issues/events{/number}","events_url":"https://api.github.com/repos/woocommerce/woocommerce/events","assignees_url":"https://api.github.com/repos/woocommerce/woocommerce/assignees{/user}","branches_url":"https://api.github.com/repos/woocommerce/woocommerce/branches{/branch}","tags_url":"https://api.github.com/repos/woocommerce/woocommerce/tags","blobs_url":"https://api.github.com/repos/woocommerce/woocommerce/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/woocommerce/woocommerce/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/woocommerce/woocommerce/git/refs{/sha}","trees_url":"https://api.github.com/repos/woocommerce/woocommerce/git/trees{/sha}","statuses_url":"https://api.github.com/repos/woocommerce/woocommerce/statuses/{sha}","languages_url":"https://api.github.com/repos/woocommerce/woocommerce/languages","stargazers_url":"https://api.github.com/repos/woocommerce/woocommerce/stargazers","contributors_url":"https://api.github.com/repos/woocommerce/woocommerce/contributors","subscribers_url":"https://api.github.com/repos/woocommerce/woocommerce/subscribers","subscription_url":"https://api.github.com/repos/woocommerce/woocommerce/subscription","commits_url":"https://api.github.com/repos/woocommerce/woocommerce/commits{/sha}","git_commits_url":"https://api.github.com/repos/woocommerce/woocommerce/git/commits{/sha}","comments_url":"https://api.github.com/repos/woocommerce/woocommerce/comments{/number}","issue_comment_url":"https://api.github.com/repos/woocommerce/woocommerce/issues/comments{/number}","contents_url":"https://api.github.com/repos/woocommerce/woocommerce/contents/{+path}","compare_url":"https://api.github.com/repos/woocommerce/woocommerce/compare/{base}...{head}","merges_url":"https://api.github.com/repos/woocommerce/woocommerce/merges","archive_url":"https://api.github.com/repos/woocommerce/woocommerce/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/woocommerce/woocommerce/downloads","issues_url":"https://api.github.com/repos/woocommerce/woocommerce/issues{/number}","pulls_url":"https://api.github.com/repos/woocommerce/woocommerce/pulls{/number}","milestones_url":"https://api.github.com/repos/woocommerce/woocommerce/milestones{/number}","notifications_url":"https://api.github.com/repos/woocommerce/woocommerce/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/woocommerce/woocommerce/labels{/name}","releases_url":"https://api.github.com/repos/woocommerce/woocommerce/releases{/id}","deployments_url":"https://api.github.com/repos/woocommerce/woocommerce/deployments","created_at":"2011-08-09T15:12:11Z","updated_at":"2017-11-18T11:12:30Z","pushed_at":"2017-11-18T11:44:32Z","git_url":"git://github.com/woocommerce/woocommerce.git","ssh_url":"git@github.com:woocommerce/woocommerce.git","clone_url":"https://github.com/woocommerce/woocommerce.git","svn_url":"https://github.com/woocommerce/woocommerce","homepage":"http://www.woocommerce.com/","size":135706,"stargazers_count":3870,"watchers_count":3870,"language":"PHP","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":3473,"mirror_url":null,"archived":false,"open_issues_count":83,"forks":3473,"open_issues":83,"watchers":3870,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/woocommerce/woocommerce/pulls/17475"},"html":{"href":"https://github.com/woocommerce/woocommerce/pull/17475"},"issue":{"href":"https://api.github.com/repos/woocommerce/woocommerce/issues/17475"},"comments":{"href":"https://api.github.com/repos/woocommerce/woocommerce/issues/17475/comments"},"review_comments":{"href":"https://api.github.com/repos/woocommerce/woocommerce/pulls/17475/comments"},"review_comment":{"href":"https://api.github.com/repos/woocommerce/woocommerce/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/woocommerce/woocommerce/pulls/17475/commits"},"statuses":{"href":"https://api.github.com/repos/woocommerce/woocommerce/statuses/c857b25118c6262925b9bfc6d1b861a31ddeca93"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"bor0"}}