{"action":"opened","number":19,"pull_request":{"url":"https://api.github.com/repos/effortless-technologies/elt-marketplace-wp/pulls/19","id":183250982,"html_url":"https://github.com/effortless-technologies/elt-marketplace-wp/pull/19","diff_url":"https://github.com/effortless-technologies/elt-marketplace-wp/pull/19.diff","patch_url":"https://github.com/effortless-technologies/elt-marketplace-wp/pull/19.patch","issue_url":"https://api.github.com/repos/effortless-technologies/elt-marketplace-wp/issues/19","number":19,"state":"open","locked":false,"title":"WC Marketplace Featured Image Fix","user":{"login":"iatkotep","id":425818,"avatar_url":"https://avatars0.githubusercontent.com/u/425818?v=4","gravatar_id":"","url":"https://api.github.com/users/iatkotep","html_url":"https://github.com/iatkotep","followers_url":"https://api.github.com/users/iatkotep/followers","following_url":"https://api.github.com/users/iatkotep/following{/other_user}","gists_url":"https://api.github.com/users/iatkotep/gists{/gist_id}","starred_url":"https://api.github.com/users/iatkotep/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iatkotep/subscriptions","organizations_url":"https://api.github.com/users/iatkotep/orgs","repos_url":"https://api.github.com/users/iatkotep/repos","events_url":"https://api.github.com/users/iatkotep/events{/privacy}","received_events_url":"https://api.github.com/users/iatkotep/received_events","type":"User","site_admin":false},"body":"This was the elegant solution I was hoping for.\r\n\r\nWCMP has a function that resolves a Media Library url to an attachment ID.  This function assumes that the url is in the local media library, which is why it was breaking when being fed a Google Storage url.\r\n\r\nThe WCMP function was not filterable, but it makes a call to `wp_get_upload_dir` which is filterable.  I intercepted the call in `functions.php` and replaced the local `baseurl` with the Google Storage url.\r\n\r\nWorks like a champ.\r\n\r\nI’m only overriding the `baseurl` in the event that WP Stateless is active, and the code is being called in the admin.  Should be fine to overwrite, as WP Stateless takes over any scenario that would require the Media LIbrary’s baseurl.","created_at":"2018-04-22T01:51:52Z","updated_at":"2018-04-22T01:51:52Z","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/effortless-technologies/elt-marketplace-wp/pulls/19/commits","review_comments_url":"https://api.github.com/repos/effortless-technologies/elt-marketplace-wp/pulls/19/comments","review_comment_url":"https://api.github.com/repos/effortless-technologies/elt-marketplace-wp/pulls/comments{/number}","comments_url":"https://api.github.com/repos/effortless-technologies/elt-marketplace-wp/issues/19/comments","statuses_url":"https://api.github.com/repos/effortless-technologies/elt-marketplace-wp/statuses/befad78c8522cebf8a165e9d073969ba2babdb42","head":{"label":"effortless-technologies:dlawson-featured-image-fix","ref":"dlawson-featured-image-fix","sha":"befad78c8522cebf8a165e9d073969ba2babdb42","user":{"login":"effortless-technologies","id":32912919,"avatar_url":"https://avatars2.githubusercontent.com/u/32912919?v=4","gravatar_id":"","url":"https://api.github.com/users/effortless-technologies","html_url":"https://github.com/effortless-technologies","followers_url":"https://api.github.com/users/effortless-technologies/followers","following_url":"https://api.github.com/users/effortless-technologies/following{/other_user}","gists_url":"https://api.github.com/users/effortless-technologies/gists{/gist_id}","starred_url":"https://api.github.com/users/effortless-technologies/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/effortless-technologies/subscriptions","organizations_url":"https://api.github.com/users/effortless-technologies/orgs","repos_url":"https://api.github.com/users/effortless-technologies/repos","events_url":"https://api.github.com/users/effortless-technologies/events{/privacy}","received_events_url":"https://api.github.com/users/effortless-technologies/received_events","type":"Organization","site_admin":false},"repo":{"id":110024342,"name":"elt-marketplace-wp","full_name":"effortless-technologies/elt-marketplace-wp","owner":{"login":"effortless-technologies","id":32912919,"avatar_url":"https://avatars2.githubusercontent.com/u/32912919?v=4","gravatar_id":"","url":"https://api.github.com/users/effortless-technologies","html_url":"https://github.com/effortless-technologies","followers_url":"https://api.github.com/users/effortless-technologies/followers","following_url":"https://api.github.com/users/effortless-technologies/following{/other_user}","gists_url":"https://api.github.com/users/effortless-technologies/gists{/gist_id}","starred_url":"https://api.github.com/users/effortless-technologies/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/effortless-technologies/subscriptions","organizations_url":"https://api.github.com/users/effortless-technologies/orgs","repos_url":"https://api.github.com/users/effortless-technologies/repos","events_url":"https://api.github.com/users/effortless-technologies/events{/privacy}","received_events_url":"https://api.github.com/users/effortless-technologies/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/effortless-technologies/elt-marketplace-wp","description":null,"fork":false,"url":"https://api.github.com/repos/effortless-technologies/elt-marketplace-wp","forks_url":"https://api.github.com/repos/effortless-technologies/elt-marketplace-wp/forks","keys_url":"https://api.github.com/repos/effortless-technologies/elt-marketplace-wp/keys{/key_id}","collaborators_url":"https://api.github.com/repos/effortless-technologies/elt-marketplace-wp/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/effortless-technologies/elt-marketplace-wp/teams","hooks_url":"https://api.github.com/repos/effortless-technologies/elt-marketplace-wp/hooks","issue_events_url":"https://api.github.com/repos/effortless-technologies/elt-marketplace-wp/issues/events{/number}","events_url":"https://api.github.com/repos/effortless-technologies/elt-marketplace-wp/events","assignees_url":"https://api.github.com/repos/effortless-technologies/elt-marketplace-wp/assignees{/user}","branches_url":"https://api.github.com/repos/effortless-technologies/elt-marketplace-wp/branches{/branch}","tags_url":"https://api.github.com/repos/effortless-technologies/elt-marketplace-wp/tags","blobs_url":"https://api.github.com/repos/effortless-technologies/elt-marketplace-wp/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/effortless-technologies/elt-marketplace-wp/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/effortless-technologies/elt-marketplace-wp/git/refs{/sha}","trees_url":"https://api.github.com/repos/effortless-technologies/elt-marketplace-wp/git/trees{/sha}","statuses_url":"https://api.github.com/repos/effortless-technologies/elt-marketplace-wp/statuses/{sha}","languages_url":"https://api.github.com/repos/effortless-technologies/elt-marketplace-wp/languages","stargazers_url":"https://api.github.com/repos/effortless-technologies/elt-marketplace-wp/stargazers","contributors_url":"https://api.github.com/repos/effortless-technologies/elt-marketplace-wp/contributors","subscribers_url":"https://api.github.com/repos/effortless-technologies/elt-marketplace-wp/subscribers","subscription_url":"https://api.github.com/repos/effortless-technologies/elt-marketplace-wp/subscription","commits_url":"https://api.github.com/repos/effortless-technologies/elt-marketplace-wp/commits{/sha}","git_commits_url":"https://api.github.com/repos/effortless-technologies/elt-marketplace-wp/git/commits{/sha}","comments_url":"https://api.github.com/repos/effortless-technologies/elt-marketplace-wp/comments{/number}","issue_comment_url":"https://api.github.com/repos/effortless-technologies/elt-marketplace-wp/issues/comments{/number}","contents_url":"https://api.github.com/repos/effortless-technologies/elt-marketplace-wp/contents/{+path}","compare_url":"https://api.github.com/repos/effortless-technologies/elt-marketplace-wp/compare/{base}...{head}","merges_url":"https://api.github.com/repos/effortless-technologies/elt-marketplace-wp/merges","archive_url":"https://api.github.com/repos/effortless-technologies/elt-marketplace-wp/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/effortless-technologies/elt-marketplace-wp/downloads","issues_url":"https://api.github.com/repos/effortless-technologies/elt-marketplace-wp/issues{/number}","pulls_url":"https://api.github.com/repos/effortless-technologies/elt-marketplace-wp/pulls{/number}","milestones_url":"https://api.github.com/repos/effortless-technologies/elt-marketplace-wp/milestones{/number}","notifications_url":"https://api.github.com/repos/effortless-technologies/elt-marketplace-wp/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/effortless-technologies/elt-marketplace-wp/labels{/name}","releases_url":"https://api.github.com/repos/effortless-technologies/elt-marketplace-wp/releases{/id}","deployments_url":"https://api.github.com/repos/effortless-technologies/elt-marketplace-wp/deployments","created_at":"2017-11-08T20:02:29Z","updated_at":"2018-04-16T19:57:36Z","pushed_at":"2018-04-22T01:51:25Z","git_url":"git://github.com/effortless-technologies/elt-marketplace-wp.git","ssh_url":"git@github.com:effortless-technologies/elt-marketplace-wp.git","clone_url":"https://github.com/effortless-technologies/elt-marketplace-wp.git","svn_url":"https://github.com/effortless-technologies/elt-marketplace-wp","homepage":null,"size":165250,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":2,"license":{"key":"other","name":"Other","spdx_id":null,"url":null},"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"effortless-technologies:master","ref":"master","sha":"39068bfa1c75ba1e19a9a467d78c4b204db8e1e9","user":{"login":"effortless-technologies","id":32912919,"avatar_url":"https://avatars2.githubusercontent.com/u/32912919?v=4","gravatar_id":"","url":"https://api.github.com/users/effortless-technologies","html_url":"https://github.com/effortless-technologies","followers_url":"https://api.github.com/users/effortless-technologies/followers","following_url":"https://api.github.com/users/effortless-technologies/following{/other_user}","gists_url":"https://api.github.com/users/effortless-technologies/gists{/gist_id}","starred_url":"https://api.github.com/users/effortless-technologies/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/effortless-technologies/subscriptions","organizations_url":"https://api.github.com/users/effortless-technologies/orgs","repos_url":"https://api.github.com/users/effortless-technologies/repos","events_url":"https://api.github.com/users/effortless-technologies/events{/privacy}","received_events_url":"https://api.github.com/users/effortless-technologies/received_events","type":"Organization","site_admin":false},"repo":{"id":110024342,"name":"elt-marketplace-wp","full_name":"effortless-technologies/elt-marketplace-wp","owner":{"login":"effortless-technologies","id":32912919,"avatar_url":"https://avatars2.githubusercontent.com/u/32912919?v=4","gravatar_id":"","url":"https://api.github.com/users/effortless-technologies","html_url":"https://github.com/effortless-technologies","followers_url":"https://api.github.com/users/effortless-technologies/followers","following_url":"https://api.github.com/users/effortless-technologies/following{/other_user}","gists_url":"https://api.github.com/users/effortless-technologies/gists{/gist_id}","starred_url":"https://api.github.com/users/effortless-technologies/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/effortless-technologies/subscriptions","organizations_url":"https://api.github.com/users/effortless-technologies/orgs","repos_url":"https://api.github.com/users/effortless-technologies/repos","events_url":"https://api.github.com/users/effortless-technologies/events{/privacy}","received_events_url":"https://api.github.com/users/effortless-technologies/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/effortless-technologies/elt-marketplace-wp","description":null,"fork":false,"url":"https://api.github.com/repos/effortless-technologies/elt-marketplace-wp","forks_url":"https://api.github.com/repos/effortless-technologies/elt-marketplace-wp/forks","keys_url":"https://api.github.com/repos/effortless-technologies/elt-marketplace-wp/keys{/key_id}","collaborators_url":"https://api.github.com/repos/effortless-technologies/elt-marketplace-wp/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/effortless-technologies/elt-marketplace-wp/teams","hooks_url":"https://api.github.com/repos/effortless-technologies/elt-marketplace-wp/hooks","issue_events_url":"https://api.github.com/repos/effortless-technologies/elt-marketplace-wp/issues/events{/number}","events_url":"https://api.github.com/repos/effortless-technologies/elt-marketplace-wp/events","assignees_url":"https://api.github.com/repos/effortless-technologies/elt-marketplace-wp/assignees{/user}","branches_url":"https://api.github.com/repos/effortless-technologies/elt-marketplace-wp/branches{/branch}","tags_url":"https://api.github.com/repos/effortless-technologies/elt-marketplace-wp/tags","blobs_url":"https://api.github.com/repos/effortless-technologies/elt-marketplace-wp/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/effortless-technologies/elt-marketplace-wp/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/effortless-technologies/elt-marketplace-wp/git/refs{/sha}","trees_url":"https://api.github.com/repos/effortless-technologies/elt-marketplace-wp/git/trees{/sha}","statuses_url":"https://api.github.com/repos/effortless-technologies/elt-marketplace-wp/statuses/{sha}","languages_url":"https://api.github.com/repos/effortless-technologies/elt-marketplace-wp/languages","stargazers_url":"https://api.github.com/repos/effortless-technologies/elt-marketplace-wp/stargazers","contributors_url":"https://api.github.com/repos/effortless-technologies/elt-marketplace-wp/contributors","subscribers_url":"https://api.github.com/repos/effortless-technologies/elt-marketplace-wp/subscribers","subscription_url":"https://api.github.com/repos/effortless-technologies/elt-marketplace-wp/subscription","commits_url":"https://api.github.com/repos/effortless-technologies/elt-marketplace-wp/commits{/sha}","git_commits_url":"https://api.github.com/repos/effortless-technologies/elt-marketplace-wp/git/commits{/sha}","comments_url":"https://api.github.com/repos/effortless-technologies/elt-marketplace-wp/comments{/number}","issue_comment_url":"https://api.github.com/repos/effortless-technologies/elt-marketplace-wp/issues/comments{/number}","contents_url":"https://api.github.com/repos/effortless-technologies/elt-marketplace-wp/contents/{+path}","compare_url":"https://api.github.com/repos/effortless-technologies/elt-marketplace-wp/compare/{base}...{head}","merges_url":"https://api.github.com/repos/effortless-technologies/elt-marketplace-wp/merges","archive_url":"https://api.github.com/repos/effortless-technologies/elt-marketplace-wp/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/effortless-technologies/elt-marketplace-wp/downloads","issues_url":"https://api.github.com/repos/effortless-technologies/elt-marketplace-wp/issues{/number}","pulls_url":"https://api.github.com/repos/effortless-technologies/elt-marketplace-wp/pulls{/number}","milestones_url":"https://api.github.com/repos/effortless-technologies/elt-marketplace-wp/milestones{/number}","notifications_url":"https://api.github.com/repos/effortless-technologies/elt-marketplace-wp/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/effortless-technologies/elt-marketplace-wp/labels{/name}","releases_url":"https://api.github.com/repos/effortless-technologies/elt-marketplace-wp/releases{/id}","deployments_url":"https://api.github.com/repos/effortless-technologies/elt-marketplace-wp/deployments","created_at":"2017-11-08T20:02:29Z","updated_at":"2018-04-16T19:57:36Z","pushed_at":"2018-04-22T01:51:25Z","git_url":"git://github.com/effortless-technologies/elt-marketplace-wp.git","ssh_url":"git@github.com:effortless-technologies/elt-marketplace-wp.git","clone_url":"https://github.com/effortless-technologies/elt-marketplace-wp.git","svn_url":"https://github.com/effortless-technologies/elt-marketplace-wp","homepage":null,"size":165250,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":2,"license":{"key":"other","name":"Other","spdx_id":null,"url":null},"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/effortless-technologies/elt-marketplace-wp/pulls/19"},"html":{"href":"https://github.com/effortless-technologies/elt-marketplace-wp/pull/19"},"issue":{"href":"https://api.github.com/repos/effortless-technologies/elt-marketplace-wp/issues/19"},"comments":{"href":"https://api.github.com/repos/effortless-technologies/elt-marketplace-wp/issues/19/comments"},"review_comments":{"href":"https://api.github.com/repos/effortless-technologies/elt-marketplace-wp/pulls/19/comments"},"review_comment":{"href":"https://api.github.com/repos/effortless-technologies/elt-marketplace-wp/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/effortless-technologies/elt-marketplace-wp/pulls/19/commits"},"statuses":{"href":"https://api.github.com/repos/effortless-technologies/elt-marketplace-wp/statuses/befad78c8522cebf8a165e9d073969ba2babdb42"}},"author_association":"COLLABORATOR","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":false,"commits":1,"additions":11,"deletions":0,"changed_files":1}}
{"actor":{"display_login":"iatkotep"}}