{"action":"created","issue":{"url":"https://api.github.com/repos/Objectivco/WordPressMultisiteSubdirectoryValetDriver/issues/2","repository_url":"https://api.github.com/repos/Objectivco/WordPressMultisiteSubdirectoryValetDriver","labels_url":"https://api.github.com/repos/Objectivco/WordPressMultisiteSubdirectoryValetDriver/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/Objectivco/WordPressMultisiteSubdirectoryValetDriver/issues/2/comments","events_url":"https://api.github.com/repos/Objectivco/WordPressMultisiteSubdirectoryValetDriver/issues/2/events","html_url":"https://github.com/Objectivco/WordPressMultisiteSubdirectoryValetDriver/issues/2","id":223471740,"number":2,"title":"Site spesific cron jobs","user":{"login":"leaase","id":96702,"avatar_url":"https://avatars3.githubusercontent.com/u/96702?v=3","gravatar_id":"","url":"https://api.github.com/users/leaase","html_url":"https://github.com/leaase","followers_url":"https://api.github.com/users/leaase/followers","following_url":"https://api.github.com/users/leaase/following{/other_user}","gists_url":"https://api.github.com/users/leaase/gists{/gist_id}","starred_url":"https://api.github.com/users/leaase/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leaase/subscriptions","organizations_url":"https://api.github.com/users/leaase/orgs","repos_url":"https://api.github.com/users/leaase/repos","events_url":"https://api.github.com/users/leaase/events{/privacy}","received_events_url":"https://api.github.com/users/leaase/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-04-21T19:13:25Z","updated_at":"2017-04-21T19:53:36Z","closed_at":null,"body":"Hi :)\r\nAs I mentioned in this issue (https://github.com/laravel/valet/issues/360) on Laravel Valet repository, I'm having problems with site spesific cron jobs.\r\n\r\nWhen I call https://domain.dev/sitename/wp-cron.php I get a 404 response. The call to https://domain.dev/wp-cron.php works, but then the site spesific cron jobs don't get executed.\r\n\r\nSo what I think need to happen is that a call to https://domain.dev/sitename/wp-cron.php should trigger https://domain.dev/wp-cron.php but with the 'sitename' as current site instead of the default blog.\r\n\r\nI'm not sure how to do that, but will post here if I stumble upon a solution.\r\n"},"comment":{"url":"https://api.github.com/repos/Objectivco/WordPressMultisiteSubdirectoryValetDriver/issues/comments/296290988","html_url":"https://github.com/Objectivco/WordPressMultisiteSubdirectoryValetDriver/issues/2#issuecomment-296290988","issue_url":"https://api.github.com/repos/Objectivco/WordPressMultisiteSubdirectoryValetDriver/issues/2","id":296290988,"user":{"login":"clifgriffin","id":682201,"avatar_url":"https://avatars3.githubusercontent.com/u/682201?v=3","gravatar_id":"","url":"https://api.github.com/users/clifgriffin","html_url":"https://github.com/clifgriffin","followers_url":"https://api.github.com/users/clifgriffin/followers","following_url":"https://api.github.com/users/clifgriffin/following{/other_user}","gists_url":"https://api.github.com/users/clifgriffin/gists{/gist_id}","starred_url":"https://api.github.com/users/clifgriffin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/clifgriffin/subscriptions","organizations_url":"https://api.github.com/users/clifgriffin/orgs","repos_url":"https://api.github.com/users/clifgriffin/repos","events_url":"https://api.github.com/users/clifgriffin/events{/privacy}","received_events_url":"https://api.github.com/users/clifgriffin/received_events","type":"User","site_admin":false},"created_at":"2017-04-21T19:53:36Z","updated_at":"2017-04-21T19:53:36Z","body":"Hi @leaase.\r\n\r\nCan you try adding this to line 37?\r\n\r\n```\r\n        if ( stripos($uri, 'wp-cron.php') !== false ) {\r\n            $new_uri = substr($uri, stripos($uri, '/wp-') );  \r\n                      \r\n            if ( file_exists( $sitePath . $new_uri ) ) {\r\n                return $sitePath . $new_uri;\r\n            }\r\n        }\r\n```"}}
{"actor":{"display_login":"clifgriffin"}}