{"action":"created","comment":{"url":"https://api.github.com/repos/affiliatewp/AffiliateWP/pulls/comments/34628612","id":34628612,"diff_hunk":"@@ -358,24 +358,19 @@ public function reference_link( $reference = 0, $referral ) {\n \t*/\n \tpublic function get_referral_description( $payment_id = 0 ) {\n \n-\t\t$description = '';\n+\t\t$description = array();\n \t\t$downloads   = edd_get_payment_meta_downloads( $payment_id );\n-\t\tforeach( $downloads as $key => $item ) {\n \n-\t\t\tif( get_post_meta( $item['id'], '_affwp_' . $this->context . '_referrals_disabled', true ) ) {\n-\t\t\t\tcontinue; // Referrals are disabled on this product\n-\t\t\t}\n-\n-\t\t\t$description .= get_the_title( $item['id'] );\n+\t\tforeach ( $downloads as $key => $item ) {\n \n-\t\t\tif( $key + 1 < count( $downloads ) ) {\n-\t\t\t\t$description .= ', ';\n+\t\t\tif ( get_post_meta( $item['id'], \"_affwp_{$this->context}_referrals_disabled\", true ) ) {","path":"includes/integrations/class-edd.php","position":null,"original_position":87,"commit_id":"a76ee5aebd05ef1f87c48dd163940b7514627be1","original_commit_id":"87e12ef065dee15c6bf4b06dc8dc7bc5ba1f84b1","user":{"login":"fjarrett","id":522158,"avatar_url":"https://avatars.githubusercontent.com/u/522158?v=3","gravatar_id":"","url":"https://api.github.com/users/fjarrett","html_url":"https://github.com/fjarrett","followers_url":"https://api.github.com/users/fjarrett/followers","following_url":"https://api.github.com/users/fjarrett/following{/other_user}","gists_url":"https://api.github.com/users/fjarrett/gists{/gist_id}","starred_url":"https://api.github.com/users/fjarrett/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fjarrett/subscriptions","organizations_url":"https://api.github.com/users/fjarrett/orgs","repos_url":"https://api.github.com/users/fjarrett/repos","events_url":"https://api.github.com/users/fjarrett/events{/privacy}","received_events_url":"https://api.github.com/users/fjarrett/received_events","type":"User","site_admin":false},"body":"@pippinsplugins Sure thing, done in https://github.com/affiliatewp/AffiliateWP/commit/a76ee5a","created_at":"2015-07-14T22:38:19Z","updated_at":"2015-07-14T22:38:19Z","html_url":"https://github.com/affiliatewp/AffiliateWP/pull/769#discussion_r34628612","pull_request_url":"https://api.github.com/repos/affiliatewp/AffiliateWP/pulls/769","_links":{"self":{"href":"https://api.github.com/repos/affiliatewp/AffiliateWP/pulls/comments/34628612"},"html":{"href":"https://github.com/affiliatewp/AffiliateWP/pull/769#discussion_r34628612"},"pull_request":{"href":"https://api.github.com/repos/affiliatewp/AffiliateWP/pulls/769"}}},"pull_request":{"url":"https://api.github.com/repos/affiliatewp/AffiliateWP/pulls/769","id":39938971,"html_url":"https://github.com/affiliatewp/AffiliateWP/pull/769","diff_url":"https://github.com/affiliatewp/AffiliateWP/pull/769.diff","patch_url":"https://github.com/affiliatewp/AffiliateWP/pull/769.patch","issue_url":"https://api.github.com/repos/affiliatewp/AffiliateWP/issues/769","number":769,"state":"open","locked":false,"title":"Issue/767","user":{"login":"fjarrett","id":522158,"avatar_url":"https://avatars.githubusercontent.com/u/522158?v=3","gravatar_id":"","url":"https://api.github.com/users/fjarrett","html_url":"https://github.com/fjarrett","followers_url":"https://api.github.com/users/fjarrett/followers","following_url":"https://api.github.com/users/fjarrett/following{/other_user}","gists_url":"https://api.github.com/users/fjarrett/gists{/gist_id}","starred_url":"https://api.github.com/users/fjarrett/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fjarrett/subscriptions","organizations_url":"https://api.github.com/users/fjarrett/orgs","repos_url":"https://api.github.com/users/fjarrett/repos","events_url":"https://api.github.com/users/fjarrett/events{/privacy}","received_events_url":"https://api.github.com/users/fjarrett/received_events","type":"User","site_admin":false},"body":"Fixes #767 \r\n\r\nThis PR fixes the trailing comma when one download item in checkout has referrals disabled.\r\n\r\nI didn't realize until after I already did this issue that there was not a milestone assigned yet. Sorry about that.","created_at":"2015-07-14T17:11:55Z","updated_at":"2015-07-14T22:38:19Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d775665ac1d73b2c3919cc80793ab8c6d59471f6","assignee":{"login":"pippinsplugins","id":1034109,"avatar_url":"https://avatars.githubusercontent.com/u/1034109?v=3","gravatar_id":"","url":"https://api.github.com/users/pippinsplugins","html_url":"https://github.com/pippinsplugins","followers_url":"https://api.github.com/users/pippinsplugins/followers","following_url":"https://api.github.com/users/pippinsplugins/following{/other_user}","gists_url":"https://api.github.com/users/pippinsplugins/gists{/gist_id}","starred_url":"https://api.github.com/users/pippinsplugins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pippinsplugins/subscriptions","organizations_url":"https://api.github.com/users/pippinsplugins/orgs","repos_url":"https://api.github.com/users/pippinsplugins/repos","events_url":"https://api.github.com/users/pippinsplugins/events{/privacy}","received_events_url":"https://api.github.com/users/pippinsplugins/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/affiliatewp/AffiliateWP/pulls/769/commits","review_comments_url":"https://api.github.com/repos/affiliatewp/AffiliateWP/pulls/769/comments","review_comment_url":"https://api.github.com/repos/affiliatewp/AffiliateWP/pulls/comments{/number}","comments_url":"https://api.github.com/repos/affiliatewp/AffiliateWP/issues/769/comments","statuses_url":"https://api.github.com/repos/affiliatewp/AffiliateWP/statuses/a76ee5aebd05ef1f87c48dd163940b7514627be1","head":{"label":"affiliatewp:Issue/767","ref":"Issue/767","sha":"a76ee5aebd05ef1f87c48dd163940b7514627be1","user":{"login":"affiliatewp","id":7075307,"avatar_url":"https://avatars.githubusercontent.com/u/7075307?v=3","gravatar_id":"","url":"https://api.github.com/users/affiliatewp","html_url":"https://github.com/affiliatewp","followers_url":"https://api.github.com/users/affiliatewp/followers","following_url":"https://api.github.com/users/affiliatewp/following{/other_user}","gists_url":"https://api.github.com/users/affiliatewp/gists{/gist_id}","starred_url":"https://api.github.com/users/affiliatewp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/affiliatewp/subscriptions","organizations_url":"https://api.github.com/users/affiliatewp/orgs","repos_url":"https://api.github.com/users/affiliatewp/repos","events_url":"https://api.github.com/users/affiliatewp/events{/privacy}","received_events_url":"https://api.github.com/users/affiliatewp/received_events","type":"Organization","site_admin":false},"repo":{"id":15543455,"name":"AffiliateWP","full_name":"affiliatewp/AffiliateWP","owner":{"login":"affiliatewp","id":7075307,"avatar_url":"https://avatars.githubusercontent.com/u/7075307?v=3","gravatar_id":"","url":"https://api.github.com/users/affiliatewp","html_url":"https://github.com/affiliatewp","followers_url":"https://api.github.com/users/affiliatewp/followers","following_url":"https://api.github.com/users/affiliatewp/following{/other_user}","gists_url":"https://api.github.com/users/affiliatewp/gists{/gist_id}","starred_url":"https://api.github.com/users/affiliatewp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/affiliatewp/subscriptions","organizations_url":"https://api.github.com/users/affiliatewp/orgs","repos_url":"https://api.github.com/users/affiliatewp/repos","events_url":"https://api.github.com/users/affiliatewp/events{/privacy}","received_events_url":"https://api.github.com/users/affiliatewp/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/affiliatewp/AffiliateWP","description":"Affiliate plugin for WordPress","fork":false,"url":"https://api.github.com/repos/affiliatewp/AffiliateWP","forks_url":"https://api.github.com/repos/affiliatewp/AffiliateWP/forks","keys_url":"https://api.github.com/repos/affiliatewp/AffiliateWP/keys{/key_id}","collaborators_url":"https://api.github.com/repos/affiliatewp/AffiliateWP/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/affiliatewp/AffiliateWP/teams","hooks_url":"https://api.github.com/repos/affiliatewp/AffiliateWP/hooks","issue_events_url":"https://api.github.com/repos/affiliatewp/AffiliateWP/issues/events{/number}","events_url":"https://api.github.com/repos/affiliatewp/AffiliateWP/events","assignees_url":"https://api.github.com/repos/affiliatewp/AffiliateWP/assignees{/user}","branches_url":"https://api.github.com/repos/affiliatewp/AffiliateWP/branches{/branch}","tags_url":"https://api.github.com/repos/affiliatewp/AffiliateWP/tags","blobs_url":"https://api.github.com/repos/affiliatewp/AffiliateWP/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/affiliatewp/AffiliateWP/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/affiliatewp/AffiliateWP/git/refs{/sha}","trees_url":"https://api.github.com/repos/affiliatewp/AffiliateWP/git/trees{/sha}","statuses_url":"https://api.github.com/repos/affiliatewp/AffiliateWP/statuses/{sha}","languages_url":"https://api.github.com/repos/affiliatewp/AffiliateWP/languages","stargazers_url":"https://api.github.com/repos/affiliatewp/AffiliateWP/stargazers","contributors_url":"https://api.github.com/repos/affiliatewp/AffiliateWP/contributors","subscribers_url":"https://api.github.com/repos/affiliatewp/AffiliateWP/subscribers","subscription_url":"https://api.github.com/repos/affiliatewp/AffiliateWP/subscription","commits_url":"https://api.github.com/repos/affiliatewp/AffiliateWP/commits{/sha}","git_commits_url":"https://api.github.com/repos/affiliatewp/AffiliateWP/git/commits{/sha}","comments_url":"https://api.github.com/repos/affiliatewp/AffiliateWP/comments{/number}","issue_comment_url":"https://api.github.com/repos/affiliatewp/AffiliateWP/issues/comments{/number}","contents_url":"https://api.github.com/repos/affiliatewp/AffiliateWP/contents/{+path}","compare_url":"https://api.github.com/repos/affiliatewp/AffiliateWP/compare/{base}...{head}","merges_url":"https://api.github.com/repos/affiliatewp/AffiliateWP/merges","archive_url":"https://api.github.com/repos/affiliatewp/AffiliateWP/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/affiliatewp/AffiliateWP/downloads","issues_url":"https://api.github.com/repos/affiliatewp/AffiliateWP/issues{/number}","pulls_url":"https://api.github.com/repos/affiliatewp/AffiliateWP/pulls{/number}","milestones_url":"https://api.github.com/repos/affiliatewp/AffiliateWP/milestones{/number}","notifications_url":"https://api.github.com/repos/affiliatewp/AffiliateWP/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/affiliatewp/AffiliateWP/labels{/name}","releases_url":"https://api.github.com/repos/affiliatewp/AffiliateWP/releases{/id}","created_at":"2013-12-31T05:09:28Z","updated_at":"2015-07-07T10:38:23Z","pushed_at":"2015-07-14T22:38:03Z","git_url":"git://github.com/affiliatewp/AffiliateWP.git","ssh_url":"git@github.com:affiliatewp/AffiliateWP.git","clone_url":"https://github.com/affiliatewp/AffiliateWP.git","svn_url":"https://github.com/affiliatewp/AffiliateWP","homepage":null,"size":7220,"stargazers_count":135,"watchers_count":135,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":62,"mirror_url":null,"open_issues_count":173,"forks":62,"open_issues":173,"watchers":135,"default_branch":"master"}},"base":{"label":"affiliatewp:master","ref":"master","sha":"1e3df3dab3fd6944f3e6fa730f6d7f9c917919c5","user":{"login":"affiliatewp","id":7075307,"avatar_url":"https://avatars.githubusercontent.com/u/7075307?v=3","gravatar_id":"","url":"https://api.github.com/users/affiliatewp","html_url":"https://github.com/affiliatewp","followers_url":"https://api.github.com/users/affiliatewp/followers","following_url":"https://api.github.com/users/affiliatewp/following{/other_user}","gists_url":"https://api.github.com/users/affiliatewp/gists{/gist_id}","starred_url":"https://api.github.com/users/affiliatewp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/affiliatewp/subscriptions","organizations_url":"https://api.github.com/users/affiliatewp/orgs","repos_url":"https://api.github.com/users/affiliatewp/repos","events_url":"https://api.github.com/users/affiliatewp/events{/privacy}","received_events_url":"https://api.github.com/users/affiliatewp/received_events","type":"Organization","site_admin":false},"repo":{"id":15543455,"name":"AffiliateWP","full_name":"affiliatewp/AffiliateWP","owner":{"login":"affiliatewp","id":7075307,"avatar_url":"https://avatars.githubusercontent.com/u/7075307?v=3","gravatar_id":"","url":"https://api.github.com/users/affiliatewp","html_url":"https://github.com/affiliatewp","followers_url":"https://api.github.com/users/affiliatewp/followers","following_url":"https://api.github.com/users/affiliatewp/following{/other_user}","gists_url":"https://api.github.com/users/affiliatewp/gists{/gist_id}","starred_url":"https://api.github.com/users/affiliatewp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/affiliatewp/subscriptions","organizations_url":"https://api.github.com/users/affiliatewp/orgs","repos_url":"https://api.github.com/users/affiliatewp/repos","events_url":"https://api.github.com/users/affiliatewp/events{/privacy}","received_events_url":"https://api.github.com/users/affiliatewp/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/affiliatewp/AffiliateWP","description":"Affiliate plugin for WordPress","fork":false,"url":"https://api.github.com/repos/affiliatewp/AffiliateWP","forks_url":"https://api.github.com/repos/affiliatewp/AffiliateWP/forks","keys_url":"https://api.github.com/repos/affiliatewp/AffiliateWP/keys{/key_id}","collaborators_url":"https://api.github.com/repos/affiliatewp/AffiliateWP/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/affiliatewp/AffiliateWP/teams","hooks_url":"https://api.github.com/repos/affiliatewp/AffiliateWP/hooks","issue_events_url":"https://api.github.com/repos/affiliatewp/AffiliateWP/issues/events{/number}","events_url":"https://api.github.com/repos/affiliatewp/AffiliateWP/events","assignees_url":"https://api.github.com/repos/affiliatewp/AffiliateWP/assignees{/user}","branches_url":"https://api.github.com/repos/affiliatewp/AffiliateWP/branches{/branch}","tags_url":"https://api.github.com/repos/affiliatewp/AffiliateWP/tags","blobs_url":"https://api.github.com/repos/affiliatewp/AffiliateWP/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/affiliatewp/AffiliateWP/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/affiliatewp/AffiliateWP/git/refs{/sha}","trees_url":"https://api.github.com/repos/affiliatewp/AffiliateWP/git/trees{/sha}","statuses_url":"https://api.github.com/repos/affiliatewp/AffiliateWP/statuses/{sha}","languages_url":"https://api.github.com/repos/affiliatewp/AffiliateWP/languages","stargazers_url":"https://api.github.com/repos/affiliatewp/AffiliateWP/stargazers","contributors_url":"https://api.github.com/repos/affiliatewp/AffiliateWP/contributors","subscribers_url":"https://api.github.com/repos/affiliatewp/AffiliateWP/subscribers","subscription_url":"https://api.github.com/repos/affiliatewp/AffiliateWP/subscription","commits_url":"https://api.github.com/repos/affiliatewp/AffiliateWP/commits{/sha}","git_commits_url":"https://api.github.com/repos/affiliatewp/AffiliateWP/git/commits{/sha}","comments_url":"https://api.github.com/repos/affiliatewp/AffiliateWP/comments{/number}","issue_comment_url":"https://api.github.com/repos/affiliatewp/AffiliateWP/issues/comments{/number}","contents_url":"https://api.github.com/repos/affiliatewp/AffiliateWP/contents/{+path}","compare_url":"https://api.github.com/repos/affiliatewp/AffiliateWP/compare/{base}...{head}","merges_url":"https://api.github.com/repos/affiliatewp/AffiliateWP/merges","archive_url":"https://api.github.com/repos/affiliatewp/AffiliateWP/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/affiliatewp/AffiliateWP/downloads","issues_url":"https://api.github.com/repos/affiliatewp/AffiliateWP/issues{/number}","pulls_url":"https://api.github.com/repos/affiliatewp/AffiliateWP/pulls{/number}","milestones_url":"https://api.github.com/repos/affiliatewp/AffiliateWP/milestones{/number}","notifications_url":"https://api.github.com/repos/affiliatewp/AffiliateWP/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/affiliatewp/AffiliateWP/labels{/name}","releases_url":"https://api.github.com/repos/affiliatewp/AffiliateWP/releases{/id}","created_at":"2013-12-31T05:09:28Z","updated_at":"2015-07-07T10:38:23Z","pushed_at":"2015-07-14T22:38:03Z","git_url":"git://github.com/affiliatewp/AffiliateWP.git","ssh_url":"git@github.com:affiliatewp/AffiliateWP.git","clone_url":"https://github.com/affiliatewp/AffiliateWP.git","svn_url":"https://github.com/affiliatewp/AffiliateWP","homepage":null,"size":7220,"stargazers_count":135,"watchers_count":135,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":62,"mirror_url":null,"open_issues_count":173,"forks":62,"open_issues":173,"watchers":135,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/affiliatewp/AffiliateWP/pulls/769"},"html":{"href":"https://github.com/affiliatewp/AffiliateWP/pull/769"},"issue":{"href":"https://api.github.com/repos/affiliatewp/AffiliateWP/issues/769"},"comments":{"href":"https://api.github.com/repos/affiliatewp/AffiliateWP/issues/769/comments"},"review_comments":{"href":"https://api.github.com/repos/affiliatewp/AffiliateWP/pulls/769/comments"},"review_comment":{"href":"https://api.github.com/repos/affiliatewp/AffiliateWP/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/affiliatewp/AffiliateWP/pulls/769/commits"},"statuses":{"href":"https://api.github.com/repos/affiliatewp/AffiliateWP/statuses/a76ee5aebd05ef1f87c48dd163940b7514627be1"}}}}