{"action":"closed","number":6,"pull_request":{"url":"https://api.github.com/repos/oomphinc/WP-Forms-API/pulls/6","id":39863912,"html_url":"https://github.com/oomphinc/WP-Forms-API/pull/6","diff_url":"https://github.com/oomphinc/WP-Forms-API/pull/6.diff","patch_url":"https://github.com/oomphinc/WP-Forms-API/pull/6.patch","issue_url":"https://api.github.com/repos/oomphinc/WP-Forms-API/issues/6","number":6,"state":"closed","locked":false,"title":"Allow developers to specify the base URL to the wp-forms-api library","user":{"login":"jcowher","id":7431141,"avatar_url":"https://avatars.githubusercontent.com/u/7431141?v=3","gravatar_id":"","url":"https://api.github.com/users/jcowher","html_url":"https://github.com/jcowher","followers_url":"https://api.github.com/users/jcowher/followers","following_url":"https://api.github.com/users/jcowher/following{/other_user}","gists_url":"https://api.github.com/users/jcowher/gists{/gist_id}","starred_url":"https://api.github.com/users/jcowher/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jcowher/subscriptions","organizations_url":"https://api.github.com/users/jcowher/orgs","repos_url":"https://api.github.com/users/jcowher/repos","events_url":"https://api.github.com/users/jcowher/events{/privacy}","received_events_url":"https://api.github.com/users/jcowher/received_events","type":"User","site_admin":false},"body":"Unfortunately, plugins_url() is not a reliable function to use in our case:\r\n\r\n* The returned URL can be modified using a filter which may not be where the\r\nlibrary actually exists.\r\n* If the library is included in a theme (and not a plugin) it may return an\r\nincorrect path.\r\n* If symlinks are used, it may return an incorrect path.\r\n\r\nThis commit adds the \"set_url\" method to the WP_Forms_API class which\r\nallows developers to, optionally, override the the base URL to wp-forms-api\r\ndirectory if they are experiencing issues with CSS and JS files not loading\r\ndue to invalid paths.\r\n\r\n@see https://make.wordpress.org/core/2014/04/14/symlinked-plugins-in-wordpress-3-9/\r\n@see @see https://core.trac.wordpress.org/ticket/13550","created_at":"2015-07-13T22:28:11Z","updated_at":"2015-07-14T14:52:09Z","closed_at":"2015-07-14T14:52:08Z","merged_at":"2015-07-14T14:52:08Z","merge_commit_sha":"cf9a895aab5cce9d4944693f9cbaa24969b5442e","assignee":{"login":"hirozed","id":593434,"avatar_url":"https://avatars.githubusercontent.com/u/593434?v=3","gravatar_id":"","url":"https://api.github.com/users/hirozed","html_url":"https://github.com/hirozed","followers_url":"https://api.github.com/users/hirozed/followers","following_url":"https://api.github.com/users/hirozed/following{/other_user}","gists_url":"https://api.github.com/users/hirozed/gists{/gist_id}","starred_url":"https://api.github.com/users/hirozed/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hirozed/subscriptions","organizations_url":"https://api.github.com/users/hirozed/orgs","repos_url":"https://api.github.com/users/hirozed/repos","events_url":"https://api.github.com/users/hirozed/events{/privacy}","received_events_url":"https://api.github.com/users/hirozed/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/oomphinc/WP-Forms-API/pulls/6/commits","review_comments_url":"https://api.github.com/repos/oomphinc/WP-Forms-API/pulls/6/comments","review_comment_url":"https://api.github.com/repos/oomphinc/WP-Forms-API/pulls/comments{/number}","comments_url":"https://api.github.com/repos/oomphinc/WP-Forms-API/issues/6/comments","statuses_url":"https://api.github.com/repos/oomphinc/WP-Forms-API/statuses/55522c9e1ff464e2eec173d3a4a8b3b43188e2a2","head":{"label":"oomphinc:css_js_path_fix","ref":"css_js_path_fix","sha":"55522c9e1ff464e2eec173d3a4a8b3b43188e2a2","user":{"login":"oomphinc","id":5133840,"avatar_url":"https://avatars.githubusercontent.com/u/5133840?v=3","gravatar_id":"","url":"https://api.github.com/users/oomphinc","html_url":"https://github.com/oomphinc","followers_url":"https://api.github.com/users/oomphinc/followers","following_url":"https://api.github.com/users/oomphinc/following{/other_user}","gists_url":"https://api.github.com/users/oomphinc/gists{/gist_id}","starred_url":"https://api.github.com/users/oomphinc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oomphinc/subscriptions","organizations_url":"https://api.github.com/users/oomphinc/orgs","repos_url":"https://api.github.com/users/oomphinc/repos","events_url":"https://api.github.com/users/oomphinc/events{/privacy}","received_events_url":"https://api.github.com/users/oomphinc/received_events","type":"Organization","site_admin":false},"repo":{"id":29437770,"name":"WP-Forms-API","full_name":"oomphinc/WP-Forms-API","owner":{"login":"oomphinc","id":5133840,"avatar_url":"https://avatars.githubusercontent.com/u/5133840?v=3","gravatar_id":"","url":"https://api.github.com/users/oomphinc","html_url":"https://github.com/oomphinc","followers_url":"https://api.github.com/users/oomphinc/followers","following_url":"https://api.github.com/users/oomphinc/following{/other_user}","gists_url":"https://api.github.com/users/oomphinc/gists{/gist_id}","starred_url":"https://api.github.com/users/oomphinc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oomphinc/subscriptions","organizations_url":"https://api.github.com/users/oomphinc/orgs","repos_url":"https://api.github.com/users/oomphinc/repos","events_url":"https://api.github.com/users/oomphinc/events{/privacy}","received_events_url":"https://api.github.com/users/oomphinc/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/oomphinc/WP-Forms-API","description":"Drupal-esque API for creating and munging forms in WordPress","fork":false,"url":"https://api.github.com/repos/oomphinc/WP-Forms-API","forks_url":"https://api.github.com/repos/oomphinc/WP-Forms-API/forks","keys_url":"https://api.github.com/repos/oomphinc/WP-Forms-API/keys{/key_id}","collaborators_url":"https://api.github.com/repos/oomphinc/WP-Forms-API/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/oomphinc/WP-Forms-API/teams","hooks_url":"https://api.github.com/repos/oomphinc/WP-Forms-API/hooks","issue_events_url":"https://api.github.com/repos/oomphinc/WP-Forms-API/issues/events{/number}","events_url":"https://api.github.com/repos/oomphinc/WP-Forms-API/events","assignees_url":"https://api.github.com/repos/oomphinc/WP-Forms-API/assignees{/user}","branches_url":"https://api.github.com/repos/oomphinc/WP-Forms-API/branches{/branch}","tags_url":"https://api.github.com/repos/oomphinc/WP-Forms-API/tags","blobs_url":"https://api.github.com/repos/oomphinc/WP-Forms-API/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/oomphinc/WP-Forms-API/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/oomphinc/WP-Forms-API/git/refs{/sha}","trees_url":"https://api.github.com/repos/oomphinc/WP-Forms-API/git/trees{/sha}","statuses_url":"https://api.github.com/repos/oomphinc/WP-Forms-API/statuses/{sha}","languages_url":"https://api.github.com/repos/oomphinc/WP-Forms-API/languages","stargazers_url":"https://api.github.com/repos/oomphinc/WP-Forms-API/stargazers","contributors_url":"https://api.github.com/repos/oomphinc/WP-Forms-API/contributors","subscribers_url":"https://api.github.com/repos/oomphinc/WP-Forms-API/subscribers","subscription_url":"https://api.github.com/repos/oomphinc/WP-Forms-API/subscription","commits_url":"https://api.github.com/repos/oomphinc/WP-Forms-API/commits{/sha}","git_commits_url":"https://api.github.com/repos/oomphinc/WP-Forms-API/git/commits{/sha}","comments_url":"https://api.github.com/repos/oomphinc/WP-Forms-API/comments{/number}","issue_comment_url":"https://api.github.com/repos/oomphinc/WP-Forms-API/issues/comments{/number}","contents_url":"https://api.github.com/repos/oomphinc/WP-Forms-API/contents/{+path}","compare_url":"https://api.github.com/repos/oomphinc/WP-Forms-API/compare/{base}...{head}","merges_url":"https://api.github.com/repos/oomphinc/WP-Forms-API/merges","archive_url":"https://api.github.com/repos/oomphinc/WP-Forms-API/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/oomphinc/WP-Forms-API/downloads","issues_url":"https://api.github.com/repos/oomphinc/WP-Forms-API/issues{/number}","pulls_url":"https://api.github.com/repos/oomphinc/WP-Forms-API/pulls{/number}","milestones_url":"https://api.github.com/repos/oomphinc/WP-Forms-API/milestones{/number}","notifications_url":"https://api.github.com/repos/oomphinc/WP-Forms-API/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/oomphinc/WP-Forms-API/labels{/name}","releases_url":"https://api.github.com/repos/oomphinc/WP-Forms-API/releases{/id}","created_at":"2015-01-18T19:25:01Z","updated_at":"2015-07-01T08:23:37Z","pushed_at":"2015-07-14T14:52:08Z","git_url":"git://github.com/oomphinc/WP-Forms-API.git","ssh_url":"git@github.com:oomphinc/WP-Forms-API.git","clone_url":"https://github.com/oomphinc/WP-Forms-API.git","svn_url":"https://github.com/oomphinc/WP-Forms-API","homepage":null,"size":514,"stargazers_count":11,"watchers_count":11,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":0,"forks":2,"open_issues":0,"watchers":11,"default_branch":"master"}},"base":{"label":"oomphinc:master","ref":"master","sha":"88cf2649f0796d7fa3ad3a11034bfc3252a51ea5","user":{"login":"oomphinc","id":5133840,"avatar_url":"https://avatars.githubusercontent.com/u/5133840?v=3","gravatar_id":"","url":"https://api.github.com/users/oomphinc","html_url":"https://github.com/oomphinc","followers_url":"https://api.github.com/users/oomphinc/followers","following_url":"https://api.github.com/users/oomphinc/following{/other_user}","gists_url":"https://api.github.com/users/oomphinc/gists{/gist_id}","starred_url":"https://api.github.com/users/oomphinc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oomphinc/subscriptions","organizations_url":"https://api.github.com/users/oomphinc/orgs","repos_url":"https://api.github.com/users/oomphinc/repos","events_url":"https://api.github.com/users/oomphinc/events{/privacy}","received_events_url":"https://api.github.com/users/oomphinc/received_events","type":"Organization","site_admin":false},"repo":{"id":29437770,"name":"WP-Forms-API","full_name":"oomphinc/WP-Forms-API","owner":{"login":"oomphinc","id":5133840,"avatar_url":"https://avatars.githubusercontent.com/u/5133840?v=3","gravatar_id":"","url":"https://api.github.com/users/oomphinc","html_url":"https://github.com/oomphinc","followers_url":"https://api.github.com/users/oomphinc/followers","following_url":"https://api.github.com/users/oomphinc/following{/other_user}","gists_url":"https://api.github.com/users/oomphinc/gists{/gist_id}","starred_url":"https://api.github.com/users/oomphinc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oomphinc/subscriptions","organizations_url":"https://api.github.com/users/oomphinc/orgs","repos_url":"https://api.github.com/users/oomphinc/repos","events_url":"https://api.github.com/users/oomphinc/events{/privacy}","received_events_url":"https://api.github.com/users/oomphinc/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/oomphinc/WP-Forms-API","description":"Drupal-esque API for creating and munging forms in WordPress","fork":false,"url":"https://api.github.com/repos/oomphinc/WP-Forms-API","forks_url":"https://api.github.com/repos/oomphinc/WP-Forms-API/forks","keys_url":"https://api.github.com/repos/oomphinc/WP-Forms-API/keys{/key_id}","collaborators_url":"https://api.github.com/repos/oomphinc/WP-Forms-API/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/oomphinc/WP-Forms-API/teams","hooks_url":"https://api.github.com/repos/oomphinc/WP-Forms-API/hooks","issue_events_url":"https://api.github.com/repos/oomphinc/WP-Forms-API/issues/events{/number}","events_url":"https://api.github.com/repos/oomphinc/WP-Forms-API/events","assignees_url":"https://api.github.com/repos/oomphinc/WP-Forms-API/assignees{/user}","branches_url":"https://api.github.com/repos/oomphinc/WP-Forms-API/branches{/branch}","tags_url":"https://api.github.com/repos/oomphinc/WP-Forms-API/tags","blobs_url":"https://api.github.com/repos/oomphinc/WP-Forms-API/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/oomphinc/WP-Forms-API/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/oomphinc/WP-Forms-API/git/refs{/sha}","trees_url":"https://api.github.com/repos/oomphinc/WP-Forms-API/git/trees{/sha}","statuses_url":"https://api.github.com/repos/oomphinc/WP-Forms-API/statuses/{sha}","languages_url":"https://api.github.com/repos/oomphinc/WP-Forms-API/languages","stargazers_url":"https://api.github.com/repos/oomphinc/WP-Forms-API/stargazers","contributors_url":"https://api.github.com/repos/oomphinc/WP-Forms-API/contributors","subscribers_url":"https://api.github.com/repos/oomphinc/WP-Forms-API/subscribers","subscription_url":"https://api.github.com/repos/oomphinc/WP-Forms-API/subscription","commits_url":"https://api.github.com/repos/oomphinc/WP-Forms-API/commits{/sha}","git_commits_url":"https://api.github.com/repos/oomphinc/WP-Forms-API/git/commits{/sha}","comments_url":"https://api.github.com/repos/oomphinc/WP-Forms-API/comments{/number}","issue_comment_url":"https://api.github.com/repos/oomphinc/WP-Forms-API/issues/comments{/number}","contents_url":"https://api.github.com/repos/oomphinc/WP-Forms-API/contents/{+path}","compare_url":"https://api.github.com/repos/oomphinc/WP-Forms-API/compare/{base}...{head}","merges_url":"https://api.github.com/repos/oomphinc/WP-Forms-API/merges","archive_url":"https://api.github.com/repos/oomphinc/WP-Forms-API/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/oomphinc/WP-Forms-API/downloads","issues_url":"https://api.github.com/repos/oomphinc/WP-Forms-API/issues{/number}","pulls_url":"https://api.github.com/repos/oomphinc/WP-Forms-API/pulls{/number}","milestones_url":"https://api.github.com/repos/oomphinc/WP-Forms-API/milestones{/number}","notifications_url":"https://api.github.com/repos/oomphinc/WP-Forms-API/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/oomphinc/WP-Forms-API/labels{/name}","releases_url":"https://api.github.com/repos/oomphinc/WP-Forms-API/releases{/id}","created_at":"2015-01-18T19:25:01Z","updated_at":"2015-07-01T08:23:37Z","pushed_at":"2015-07-14T14:52:08Z","git_url":"git://github.com/oomphinc/WP-Forms-API.git","ssh_url":"git@github.com:oomphinc/WP-Forms-API.git","clone_url":"https://github.com/oomphinc/WP-Forms-API.git","svn_url":"https://github.com/oomphinc/WP-Forms-API","homepage":null,"size":514,"stargazers_count":11,"watchers_count":11,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":0,"forks":2,"open_issues":0,"watchers":11,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/oomphinc/WP-Forms-API/pulls/6"},"html":{"href":"https://github.com/oomphinc/WP-Forms-API/pull/6"},"issue":{"href":"https://api.github.com/repos/oomphinc/WP-Forms-API/issues/6"},"comments":{"href":"https://api.github.com/repos/oomphinc/WP-Forms-API/issues/6/comments"},"review_comments":{"href":"https://api.github.com/repos/oomphinc/WP-Forms-API/pulls/6/comments"},"review_comment":{"href":"https://api.github.com/repos/oomphinc/WP-Forms-API/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/oomphinc/WP-Forms-API/pulls/6/commits"},"statuses":{"href":"https://api.github.com/repos/oomphinc/WP-Forms-API/statuses/55522c9e1ff464e2eec173d3a4a8b3b43188e2a2"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"jcowher","id":7431141,"avatar_url":"https://avatars.githubusercontent.com/u/7431141?v=3","gravatar_id":"","url":"https://api.github.com/users/jcowher","html_url":"https://github.com/jcowher","followers_url":"https://api.github.com/users/jcowher/followers","following_url":"https://api.github.com/users/jcowher/following{/other_user}","gists_url":"https://api.github.com/users/jcowher/gists{/gist_id}","starred_url":"https://api.github.com/users/jcowher/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jcowher/subscriptions","organizations_url":"https://api.github.com/users/jcowher/orgs","repos_url":"https://api.github.com/users/jcowher/repos","events_url":"https://api.github.com/users/jcowher/events{/privacy}","received_events_url":"https://api.github.com/users/jcowher/received_events","type":"User","site_admin":false},"comments":1,"review_comments":0,"commits":1,"additions":51,"deletions":2,"changed_files":1}}