{"action":"opened","number":1,"pull_request":{"url":"https://api.github.com/repos/britco/dynamic-cdn/pulls/1","id":75515343,"html_url":"https://github.com/britco/dynamic-cdn/pull/1","diff_url":"https://github.com/britco/dynamic-cdn/pull/1.diff","patch_url":"https://github.com/britco/dynamic-cdn/pull/1.patch","issue_url":"https://api.github.com/repos/britco/dynamic-cdn/issues/1","number":1,"state":"open","locked":false,"title":"Allow uploads_only to be configured in wp-config","user":{"login":"mschierberl","id":270386,"avatar_url":"https://avatars.githubusercontent.com/u/270386?v=3","gravatar_id":"","url":"https://api.github.com/users/mschierberl","html_url":"https://github.com/mschierberl","followers_url":"https://api.github.com/users/mschierberl/followers","following_url":"https://api.github.com/users/mschierberl/following{/other_user}","gists_url":"https://api.github.com/users/mschierberl/gists{/gist_id}","starred_url":"https://api.github.com/users/mschierberl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mschierberl/subscriptions","organizations_url":"https://api.github.com/users/mschierberl/orgs","repos_url":"https://api.github.com/users/mschierberl/repos","events_url":"https://api.github.com/users/mschierberl/events{/privacy}","received_events_url":"https://api.github.com/users/mschierberl/received_events","type":"User","site_admin":false},"body":"### What this PR does\r\n\r\nThis allows configuration of `uploads_only` from wp-config.php. \r\n\r\nAdditionally, this defaults uploads_only to false and modifies the filter used for uploads_only and changes it from `the_content` to `dynamic_cdn_content`. This allows for handling of uploads outside of the loop. Useful for thumbnail images and archive pages.\r\n\r\n### Usage\r\nThis only replaces the CDN for uploads. The regex for parsing uploads has not been modified in this PR, as a result the path to uploads must be included in the `DYNCDN_DOMAINS` setting. Example below:\r\n\r\n```\r\ndefine('DYNCDN_DOMAINS', 'cdndomain.com/wp-content/uploads');\r\ndefine('DYNCDN_UPLOADS_ONLY', true);\r\n```","created_at":"2016-06-28T17:13:49Z","updated_at":"2016-06-28T17:13:49Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":{"login":"pdufour","id":1239145,"avatar_url":"https://avatars.githubusercontent.com/u/1239145?v=3","gravatar_id":"","url":"https://api.github.com/users/pdufour","html_url":"https://github.com/pdufour","followers_url":"https://api.github.com/users/pdufour/followers","following_url":"https://api.github.com/users/pdufour/following{/other_user}","gists_url":"https://api.github.com/users/pdufour/gists{/gist_id}","starred_url":"https://api.github.com/users/pdufour/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pdufour/subscriptions","organizations_url":"https://api.github.com/users/pdufour/orgs","repos_url":"https://api.github.com/users/pdufour/repos","events_url":"https://api.github.com/users/pdufour/events{/privacy}","received_events_url":"https://api.github.com/users/pdufour/received_events","type":"User","site_admin":false},"assignees":[{"login":"pdufour","id":1239145,"avatar_url":"https://avatars.githubusercontent.com/u/1239145?v=3","gravatar_id":"","url":"https://api.github.com/users/pdufour","html_url":"https://github.com/pdufour","followers_url":"https://api.github.com/users/pdufour/followers","following_url":"https://api.github.com/users/pdufour/following{/other_user}","gists_url":"https://api.github.com/users/pdufour/gists{/gist_id}","starred_url":"https://api.github.com/users/pdufour/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pdufour/subscriptions","organizations_url":"https://api.github.com/users/pdufour/orgs","repos_url":"https://api.github.com/users/pdufour/repos","events_url":"https://api.github.com/users/pdufour/events{/privacy}","received_events_url":"https://api.github.com/users/pdufour/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/britco/dynamic-cdn/pulls/1/commits","review_comments_url":"https://api.github.com/repos/britco/dynamic-cdn/pulls/1/comments","review_comment_url":"https://api.github.com/repos/britco/dynamic-cdn/pulls/comments{/number}","comments_url":"https://api.github.com/repos/britco/dynamic-cdn/issues/1/comments","statuses_url":"https://api.github.com/repos/britco/dynamic-cdn/statuses/e72e4b2cbb3a133806de6a066da3ed18589914c5","head":{"label":"britco:feature/configure-uploads-only","ref":"feature/configure-uploads-only","sha":"e72e4b2cbb3a133806de6a066da3ed18589914c5","user":{"login":"britco","id":1993396,"avatar_url":"https://avatars.githubusercontent.com/u/1993396?v=3","gravatar_id":"","url":"https://api.github.com/users/britco","html_url":"https://github.com/britco","followers_url":"https://api.github.com/users/britco/followers","following_url":"https://api.github.com/users/britco/following{/other_user}","gists_url":"https://api.github.com/users/britco/gists{/gist_id}","starred_url":"https://api.github.com/users/britco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/britco/subscriptions","organizations_url":"https://api.github.com/users/britco/orgs","repos_url":"https://api.github.com/users/britco/repos","events_url":"https://api.github.com/users/britco/events{/privacy}","received_events_url":"https://api.github.com/users/britco/received_events","type":"Organization","site_admin":false},"repo":{"id":58491885,"name":"dynamic-cdn","full_name":"britco/dynamic-cdn","owner":{"login":"britco","id":1993396,"avatar_url":"https://avatars.githubusercontent.com/u/1993396?v=3","gravatar_id":"","url":"https://api.github.com/users/britco","html_url":"https://github.com/britco","followers_url":"https://api.github.com/users/britco/followers","following_url":"https://api.github.com/users/britco/following{/other_user}","gists_url":"https://api.github.com/users/britco/gists{/gist_id}","starred_url":"https://api.github.com/users/britco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/britco/subscriptions","organizations_url":"https://api.github.com/users/britco/orgs","repos_url":"https://api.github.com/users/britco/repos","events_url":"https://api.github.com/users/britco/events{/privacy}","received_events_url":"https://api.github.com/users/britco/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/britco/dynamic-cdn","description":"Dynamic CDN for front-end assets","fork":true,"url":"https://api.github.com/repos/britco/dynamic-cdn","forks_url":"https://api.github.com/repos/britco/dynamic-cdn/forks","keys_url":"https://api.github.com/repos/britco/dynamic-cdn/keys{/key_id}","collaborators_url":"https://api.github.com/repos/britco/dynamic-cdn/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/britco/dynamic-cdn/teams","hooks_url":"https://api.github.com/repos/britco/dynamic-cdn/hooks","issue_events_url":"https://api.github.com/repos/britco/dynamic-cdn/issues/events{/number}","events_url":"https://api.github.com/repos/britco/dynamic-cdn/events","assignees_url":"https://api.github.com/repos/britco/dynamic-cdn/assignees{/user}","branches_url":"https://api.github.com/repos/britco/dynamic-cdn/branches{/branch}","tags_url":"https://api.github.com/repos/britco/dynamic-cdn/tags","blobs_url":"https://api.github.com/repos/britco/dynamic-cdn/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/britco/dynamic-cdn/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/britco/dynamic-cdn/git/refs{/sha}","trees_url":"https://api.github.com/repos/britco/dynamic-cdn/git/trees{/sha}","statuses_url":"https://api.github.com/repos/britco/dynamic-cdn/statuses/{sha}","languages_url":"https://api.github.com/repos/britco/dynamic-cdn/languages","stargazers_url":"https://api.github.com/repos/britco/dynamic-cdn/stargazers","contributors_url":"https://api.github.com/repos/britco/dynamic-cdn/contributors","subscribers_url":"https://api.github.com/repos/britco/dynamic-cdn/subscribers","subscription_url":"https://api.github.com/repos/britco/dynamic-cdn/subscription","commits_url":"https://api.github.com/repos/britco/dynamic-cdn/commits{/sha}","git_commits_url":"https://api.github.com/repos/britco/dynamic-cdn/git/commits{/sha}","comments_url":"https://api.github.com/repos/britco/dynamic-cdn/comments{/number}","issue_comment_url":"https://api.github.com/repos/britco/dynamic-cdn/issues/comments{/number}","contents_url":"https://api.github.com/repos/britco/dynamic-cdn/contents/{+path}","compare_url":"https://api.github.com/repos/britco/dynamic-cdn/compare/{base}...{head}","merges_url":"https://api.github.com/repos/britco/dynamic-cdn/merges","archive_url":"https://api.github.com/repos/britco/dynamic-cdn/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/britco/dynamic-cdn/downloads","issues_url":"https://api.github.com/repos/britco/dynamic-cdn/issues{/number}","pulls_url":"https://api.github.com/repos/britco/dynamic-cdn/pulls{/number}","milestones_url":"https://api.github.com/repos/britco/dynamic-cdn/milestones{/number}","notifications_url":"https://api.github.com/repos/britco/dynamic-cdn/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/britco/dynamic-cdn/labels{/name}","releases_url":"https://api.github.com/repos/britco/dynamic-cdn/releases{/id}","deployments_url":"https://api.github.com/repos/britco/dynamic-cdn/deployments","created_at":"2016-05-10T20:35:55Z","updated_at":"2016-05-10T20:35:56Z","pushed_at":"2016-06-28T17:07:07Z","git_url":"git://github.com/britco/dynamic-cdn.git","ssh_url":"git@github.com:britco/dynamic-cdn.git","clone_url":"https://github.com/britco/dynamic-cdn.git","svn_url":"https://github.com/britco/dynamic-cdn","homepage":null,"size":23,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"britco:master","ref":"master","sha":"221395fdfbbaa512ccfe94d4029d9aa9aa223845","user":{"login":"britco","id":1993396,"avatar_url":"https://avatars.githubusercontent.com/u/1993396?v=3","gravatar_id":"","url":"https://api.github.com/users/britco","html_url":"https://github.com/britco","followers_url":"https://api.github.com/users/britco/followers","following_url":"https://api.github.com/users/britco/following{/other_user}","gists_url":"https://api.github.com/users/britco/gists{/gist_id}","starred_url":"https://api.github.com/users/britco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/britco/subscriptions","organizations_url":"https://api.github.com/users/britco/orgs","repos_url":"https://api.github.com/users/britco/repos","events_url":"https://api.github.com/users/britco/events{/privacy}","received_events_url":"https://api.github.com/users/britco/received_events","type":"Organization","site_admin":false},"repo":{"id":58491885,"name":"dynamic-cdn","full_name":"britco/dynamic-cdn","owner":{"login":"britco","id":1993396,"avatar_url":"https://avatars.githubusercontent.com/u/1993396?v=3","gravatar_id":"","url":"https://api.github.com/users/britco","html_url":"https://github.com/britco","followers_url":"https://api.github.com/users/britco/followers","following_url":"https://api.github.com/users/britco/following{/other_user}","gists_url":"https://api.github.com/users/britco/gists{/gist_id}","starred_url":"https://api.github.com/users/britco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/britco/subscriptions","organizations_url":"https://api.github.com/users/britco/orgs","repos_url":"https://api.github.com/users/britco/repos","events_url":"https://api.github.com/users/britco/events{/privacy}","received_events_url":"https://api.github.com/users/britco/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/britco/dynamic-cdn","description":"Dynamic CDN for front-end assets","fork":true,"url":"https://api.github.com/repos/britco/dynamic-cdn","forks_url":"https://api.github.com/repos/britco/dynamic-cdn/forks","keys_url":"https://api.github.com/repos/britco/dynamic-cdn/keys{/key_id}","collaborators_url":"https://api.github.com/repos/britco/dynamic-cdn/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/britco/dynamic-cdn/teams","hooks_url":"https://api.github.com/repos/britco/dynamic-cdn/hooks","issue_events_url":"https://api.github.com/repos/britco/dynamic-cdn/issues/events{/number}","events_url":"https://api.github.com/repos/britco/dynamic-cdn/events","assignees_url":"https://api.github.com/repos/britco/dynamic-cdn/assignees{/user}","branches_url":"https://api.github.com/repos/britco/dynamic-cdn/branches{/branch}","tags_url":"https://api.github.com/repos/britco/dynamic-cdn/tags","blobs_url":"https://api.github.com/repos/britco/dynamic-cdn/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/britco/dynamic-cdn/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/britco/dynamic-cdn/git/refs{/sha}","trees_url":"https://api.github.com/repos/britco/dynamic-cdn/git/trees{/sha}","statuses_url":"https://api.github.com/repos/britco/dynamic-cdn/statuses/{sha}","languages_url":"https://api.github.com/repos/britco/dynamic-cdn/languages","stargazers_url":"https://api.github.com/repos/britco/dynamic-cdn/stargazers","contributors_url":"https://api.github.com/repos/britco/dynamic-cdn/contributors","subscribers_url":"https://api.github.com/repos/britco/dynamic-cdn/subscribers","subscription_url":"https://api.github.com/repos/britco/dynamic-cdn/subscription","commits_url":"https://api.github.com/repos/britco/dynamic-cdn/commits{/sha}","git_commits_url":"https://api.github.com/repos/britco/dynamic-cdn/git/commits{/sha}","comments_url":"https://api.github.com/repos/britco/dynamic-cdn/comments{/number}","issue_comment_url":"https://api.github.com/repos/britco/dynamic-cdn/issues/comments{/number}","contents_url":"https://api.github.com/repos/britco/dynamic-cdn/contents/{+path}","compare_url":"https://api.github.com/repos/britco/dynamic-cdn/compare/{base}...{head}","merges_url":"https://api.github.com/repos/britco/dynamic-cdn/merges","archive_url":"https://api.github.com/repos/britco/dynamic-cdn/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/britco/dynamic-cdn/downloads","issues_url":"https://api.github.com/repos/britco/dynamic-cdn/issues{/number}","pulls_url":"https://api.github.com/repos/britco/dynamic-cdn/pulls{/number}","milestones_url":"https://api.github.com/repos/britco/dynamic-cdn/milestones{/number}","notifications_url":"https://api.github.com/repos/britco/dynamic-cdn/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/britco/dynamic-cdn/labels{/name}","releases_url":"https://api.github.com/repos/britco/dynamic-cdn/releases{/id}","deployments_url":"https://api.github.com/repos/britco/dynamic-cdn/deployments","created_at":"2016-05-10T20:35:55Z","updated_at":"2016-05-10T20:35:56Z","pushed_at":"2016-06-28T17:07:07Z","git_url":"git://github.com/britco/dynamic-cdn.git","ssh_url":"git@github.com:britco/dynamic-cdn.git","clone_url":"https://github.com/britco/dynamic-cdn.git","svn_url":"https://github.com/britco/dynamic-cdn","homepage":null,"size":23,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/britco/dynamic-cdn/pulls/1"},"html":{"href":"https://github.com/britco/dynamic-cdn/pull/1"},"issue":{"href":"https://api.github.com/repos/britco/dynamic-cdn/issues/1"},"comments":{"href":"https://api.github.com/repos/britco/dynamic-cdn/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/britco/dynamic-cdn/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/britco/dynamic-cdn/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/britco/dynamic-cdn/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/britco/dynamic-cdn/statuses/e72e4b2cbb3a133806de6a066da3ed18589914c5"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":8,"deletions":4,"changed_files":1}}
{"actor":{"display_login":"mschierberl"}}