{"action":"created","issue":{"url":"https://api.github.com/repos/wp-cli/wp-cli/issues/3415","repository_url":"https://api.github.com/repos/wp-cli/wp-cli","labels_url":"https://api.github.com/repos/wp-cli/wp-cli/issues/3415/labels{/name}","comments_url":"https://api.github.com/repos/wp-cli/wp-cli/issues/3415/comments","events_url":"https://api.github.com/repos/wp-cli/wp-cli/issues/3415/events","html_url":"https://github.com/wp-cli/wp-cli/issues/3415","id":178290659,"number":3415,"title":"Success message of `wp site create` can contain a wrong site URL","user":{"login":"ocean90","id":617637,"avatar_url":"https://avatars.githubusercontent.com/u/617637?v=3","gravatar_id":"","url":"https://api.github.com/users/ocean90","html_url":"https://github.com/ocean90","followers_url":"https://api.github.com/users/ocean90/followers","following_url":"https://api.github.com/users/ocean90/following{/other_user}","gists_url":"https://api.github.com/users/ocean90/gists{/gist_id}","starred_url":"https://api.github.com/users/ocean90/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ocean90/subscriptions","organizations_url":"https://api.github.com/users/ocean90/orgs","repos_url":"https://api.github.com/users/ocean90/repos","events_url":"https://api.github.com/users/ocean90/events{/privacy}","received_events_url":"https://api.github.com/users/ocean90/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/wp-cli/wp-cli/labels/command:site","name":"command:site","color":"c7def8"},{"url":"https://api.github.com/repos/wp-cli/wp-cli/labels/command:site-create","name":"command:site-create","color":"c5def5"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-09-21T09:17:03Z","updated_at":"2016-09-21T12:17:15Z","closed_at":null,"body":"`wp site create` uses `wpmu_create_blog()` which has a `wpmu_new_blog` action. The action can be used to customize site details including the site URL.\r\n\r\nI suggest to call `get_blog_details( $id )` before https://github.com/wp-cli/wp-cli/blob/v0.24.1/php/commands/site.php#L382 and use `$details->site_url` instead.\r\n\r\nAny objections?"},"comment":{"url":"https://api.github.com/repos/wp-cli/wp-cli/issues/comments/248594074","html_url":"https://github.com/wp-cli/wp-cli/issues/3415#issuecomment-248594074","issue_url":"https://api.github.com/repos/wp-cli/wp-cli/issues/3415","id":248594074,"user":{"login":"danielbachhuber","id":36432,"avatar_url":"https://avatars.githubusercontent.com/u/36432?v=3","gravatar_id":"","url":"https://api.github.com/users/danielbachhuber","html_url":"https://github.com/danielbachhuber","followers_url":"https://api.github.com/users/danielbachhuber/followers","following_url":"https://api.github.com/users/danielbachhuber/following{/other_user}","gists_url":"https://api.github.com/users/danielbachhuber/gists{/gist_id}","starred_url":"https://api.github.com/users/danielbachhuber/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danielbachhuber/subscriptions","organizations_url":"https://api.github.com/users/danielbachhuber/orgs","repos_url":"https://api.github.com/users/danielbachhuber/repos","events_url":"https://api.github.com/users/danielbachhuber/events{/privacy}","received_events_url":"https://api.github.com/users/danielbachhuber/received_events","type":"User","site_admin":false},"created_at":"2016-09-21T12:17:15Z","updated_at":"2016-09-21T12:17:15Z","body":"👍 "}}
{"actor":{"display_login":"danielbachhuber"}}