{"action":"created","issue":{"url":"https://api.github.com/repos/Automattic/jetpack/issues/1606","labels_url":"https://api.github.com/repos/Automattic/jetpack/issues/1606/labels{/name}","comments_url":"https://api.github.com/repos/Automattic/jetpack/issues/1606/comments","events_url":"https://api.github.com/repos/Automattic/jetpack/issues/1606/events","html_url":"https://github.com/Automattic/jetpack/pull/1606","id":57084264,"number":1606,"title":"Update class.jetpack.php to improve environment test","user":{"login":"Cais","id":527691,"avatar_url":"https://avatars.githubusercontent.com/u/527691?v=3","gravatar_id":"","url":"https://api.github.com/users/Cais","html_url":"https://github.com/Cais","followers_url":"https://api.github.com/users/Cais/followers","following_url":"https://api.github.com/users/Cais/following{/other_user}","gists_url":"https://api.github.com/users/Cais/gists{/gist_id}","starred_url":"https://api.github.com/users/Cais/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Cais/subscriptions","organizations_url":"https://api.github.com/users/Cais/orgs","repos_url":"https://api.github.com/users/Cais/repos","events_url":"https://api.github.com/users/Cais/events{/privacy}","received_events_url":"https://api.github.com/users/Cais/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-02-09T20:22:48Z","updated_at":"2015-02-09T21:21:12Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/Automattic/jetpack/pulls/1606","html_url":"https://github.com/Automattic/jetpack/pull/1606","diff_url":"https://github.com/Automattic/jetpack/pull/1606.diff","patch_url":"https://github.com/Automattic/jetpack/pull/1606.patch"},"body":"Adds additional conditional tests for common \"local\" environments that may have a \".\" in their site_url() such as \".dev\" and \".local\""},"comment":{"url":"https://api.github.com/repos/Automattic/jetpack/issues/comments/73592592","html_url":"https://github.com/Automattic/jetpack/pull/1606#issuecomment-73592592","issue_url":"https://api.github.com/repos/Automattic/jetpack/issues/1606","id":73592592,"user":{"login":"Cais","id":527691,"avatar_url":"https://avatars.githubusercontent.com/u/527691?v=3","gravatar_id":"","url":"https://api.github.com/users/Cais","html_url":"https://github.com/Cais","followers_url":"https://api.github.com/users/Cais/followers","following_url":"https://api.github.com/users/Cais/following{/other_user}","gists_url":"https://api.github.com/users/Cais/gists{/gist_id}","starred_url":"https://api.github.com/users/Cais/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Cais/subscriptions","organizations_url":"https://api.github.com/users/Cais/orgs","repos_url":"https://api.github.com/users/Cais/repos","events_url":"https://api.github.com/users/Cais/events{/privacy}","received_events_url":"https://api.github.com/users/Cais/received_events","type":"User","site_admin":false},"created_at":"2015-02-09T21:21:12Z","updated_at":"2015-02-09T21:21:12Z","body":"Wow ... um, well, I'm glad it's \"probably a good improvement\" but you started losing me somewhere after using a `switch()` and `filter_var()` call. Those I understand but you might have seen my eyes glazing over as I read the rest  (*grin*). I'll look into these ideas further and see if I can grok what you are suggesting.\r\n\r\nI know the patch is not very elegant; more a kluge than anything else ... but I also did not want to let the idea slip away without getting it out there in some functional form."}}