{"action":"created","comment":{"url":"https://api.github.com/repos/moderntribe/the-events-calendar/pulls/comments/41315465","id":41315465,"diff_hunk":"@@ -50,4 +51,34 @@ public static function getOption( $optionName, $default = '' ) {\n \n \t\treturn apply_filters( 'tribe-import-setting-' . $optionName, $value, $default );\n \t}\n+\n+\tpublic static function get_default_post_status( $type = 'csv' ) {\n+\t\t$options = self::getOption( 'imported_post_status', array( $type => 'publish' ) );\n+\n+\t\t// Legacy for Facebook Status\n+\t\tif ( 'facebook' === $type && empty( $options['facebook'] ) ){\n+\t\t\t$options['facebook'] = Tribe__Events__Main::getOption( 'fb_default_status', 'publish' );\n+\t\t}\n+\n+\t\t// A way to handle the legacy `imported_post_status`\n+\t\tif ( is_string( $options ) ) {\n+\t\t\t$options = array( $type => $options );\n+\t\t}\n+\n+\t\tif ( ! isset( $options[ $type ] ) ) {\n+\t\t\t$options[ $type ] = apply_filters( 'tribe-import-default_post_status_non_saved', 'publish', $type );\n+\t\t}\n+\n+\t\treturn apply_filters( 'tribe-import-default_post_status', $options[ $type ], $type );","path":"src/Tribe/Importer/Options.php","position":32,"original_position":32,"commit_id":"6c0d5b442fb465310c81bb948e3dcfd5d6a81296","original_commit_id":"6c0d5b442fb465310c81bb948e3dcfd5d6a81296","user":{"login":"barryhughes","id":3594411,"avatar_url":"https://avatars.githubusercontent.com/u/3594411?v=3","gravatar_id":"","url":"https://api.github.com/users/barryhughes","html_url":"https://github.com/barryhughes","followers_url":"https://api.github.com/users/barryhughes/followers","following_url":"https://api.github.com/users/barryhughes/following{/other_user}","gists_url":"https://api.github.com/users/barryhughes/gists{/gist_id}","starred_url":"https://api.github.com/users/barryhughes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/barryhughes/subscriptions","organizations_url":"https://api.github.com/users/barryhughes/orgs","repos_url":"https://api.github.com/users/barryhughes/repos","events_url":"https://api.github.com/users/barryhughes/events{/privacy}","received_events_url":"https://api.github.com/users/barryhughes/received_events","type":"User","site_admin":false},"body":"Curious about the mix of hyphens and underscores here ... is there a reason for that?","created_at":"2015-10-06T20:12:50Z","updated_at":"2015-10-06T20:12:50Z","html_url":"https://github.com/moderntribe/the-events-calendar/pull/354#discussion_r41315465","pull_request_url":"https://api.github.com/repos/moderntribe/the-events-calendar/pulls/354","_links":{"self":{"href":"https://api.github.com/repos/moderntribe/the-events-calendar/pulls/comments/41315465"},"html":{"href":"https://github.com/moderntribe/the-events-calendar/pull/354#discussion_r41315465"},"pull_request":{"href":"https://api.github.com/repos/moderntribe/the-events-calendar/pulls/354"}}},"pull_request":{"url":"https://api.github.com/repos/moderntribe/the-events-calendar/pulls/354","id":46943344,"html_url":"https://github.com/moderntribe/the-events-calendar/pull/354","diff_url":"https://github.com/moderntribe/the-events-calendar/pull/354.diff","patch_url":"https://github.com/moderntribe/the-events-calendar/pull/354.patch","issue_url":"https://api.github.com/repos/moderntribe/the-events-calendar/issues/354","number":354,"state":"open","locked":false,"title":"Consolidate Import Page","user":{"login":"bordoni","id":236579,"avatar_url":"https://avatars.githubusercontent.com/u/236579?v=3","gravatar_id":"","url":"https://api.github.com/users/bordoni","html_url":"https://github.com/bordoni","followers_url":"https://api.github.com/users/bordoni/followers","following_url":"https://api.github.com/users/bordoni/following{/other_user}","gists_url":"https://api.github.com/users/bordoni/gists{/gist_id}","starred_url":"https://api.github.com/users/bordoni/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bordoni/subscriptions","organizations_url":"https://api.github.com/users/bordoni/orgs","repos_url":"https://api.github.com/users/bordoni/repos","events_url":"https://api.github.com/users/bordoni/events{/privacy}","received_events_url":"https://api.github.com/users/bordoni/received_events","type":"User","site_admin":false},"body":"_Ref:_ [C#38845](https://central.tri.be/issues/38845) + [C#38846](https://central.tri.be/issues/38846) + [C#38847](https://central.tri.be/issues/38847)\r\n_Rel:_ moderntribe/events-facebook#33 moderntribe/events-eventbrite#81 moderntribe/events-importer-ical#37","created_at":"2015-10-06T19:00:28Z","updated_at":"2015-10-06T20:12:50Z","closed_at":null,"merged_at":null,"merge_commit_sha":"60d62e553144f9a4ac7374d1152b9841f315b491","assignee":{"login":"barryhughes","id":3594411,"avatar_url":"https://avatars.githubusercontent.com/u/3594411?v=3","gravatar_id":"","url":"https://api.github.com/users/barryhughes","html_url":"https://github.com/barryhughes","followers_url":"https://api.github.com/users/barryhughes/followers","following_url":"https://api.github.com/users/barryhughes/following{/other_user}","gists_url":"https://api.github.com/users/barryhughes/gists{/gist_id}","starred_url":"https://api.github.com/users/barryhughes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/barryhughes/subscriptions","organizations_url":"https://api.github.com/users/barryhughes/orgs","repos_url":"https://api.github.com/users/barryhughes/repos","events_url":"https://api.github.com/users/barryhughes/events{/privacy}","received_events_url":"https://api.github.com/users/barryhughes/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/moderntribe/the-events-calendar/pulls/354/commits","review_comments_url":"https://api.github.com/repos/moderntribe/the-events-calendar/pulls/354/comments","review_comment_url":"https://api.github.com/repos/moderntribe/the-events-calendar/pulls/comments{/number}","comments_url":"https://api.github.com/repos/moderntribe/the-events-calendar/issues/354/comments","statuses_url":"https://api.github.com/repos/moderntribe/the-events-calendar/statuses/6c0d5b442fb465310c81bb948e3dcfd5d6a81296","head":{"label":"moderntribe:feature/38845-consolidate-import-page","ref":"feature/38845-consolidate-import-page","sha":"6c0d5b442fb465310c81bb948e3dcfd5d6a81296","user":{"login":"moderntribe","id":2279551,"avatar_url":"https://avatars.githubusercontent.com/u/2279551?v=3","gravatar_id":"","url":"https://api.github.com/users/moderntribe","html_url":"https://github.com/moderntribe","followers_url":"https://api.github.com/users/moderntribe/followers","following_url":"https://api.github.com/users/moderntribe/following{/other_user}","gists_url":"https://api.github.com/users/moderntribe/gists{/gist_id}","starred_url":"https://api.github.com/users/moderntribe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/moderntribe/subscriptions","organizations_url":"https://api.github.com/users/moderntribe/orgs","repos_url":"https://api.github.com/users/moderntribe/repos","events_url":"https://api.github.com/users/moderntribe/events{/privacy}","received_events_url":"https://api.github.com/users/moderntribe/received_events","type":"Organization","site_admin":false},"repo":{"id":16366134,"name":"the-events-calendar","full_name":"moderntribe/the-events-calendar","owner":{"login":"moderntribe","id":2279551,"avatar_url":"https://avatars.githubusercontent.com/u/2279551?v=3","gravatar_id":"","url":"https://api.github.com/users/moderntribe","html_url":"https://github.com/moderntribe","followers_url":"https://api.github.com/users/moderntribe/followers","following_url":"https://api.github.com/users/moderntribe/following{/other_user}","gists_url":"https://api.github.com/users/moderntribe/gists{/gist_id}","starred_url":"https://api.github.com/users/moderntribe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/moderntribe/subscriptions","organizations_url":"https://api.github.com/users/moderntribe/orgs","repos_url":"https://api.github.com/users/moderntribe/repos","events_url":"https://api.github.com/users/moderntribe/events{/privacy}","received_events_url":"https://api.github.com/users/moderntribe/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/moderntribe/the-events-calendar","description":"The Events Calendar WordPress plugin by Modern Tribe","fork":false,"url":"https://api.github.com/repos/moderntribe/the-events-calendar","forks_url":"https://api.github.com/repos/moderntribe/the-events-calendar/forks","keys_url":"https://api.github.com/repos/moderntribe/the-events-calendar/keys{/key_id}","collaborators_url":"https://api.github.com/repos/moderntribe/the-events-calendar/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/moderntribe/the-events-calendar/teams","hooks_url":"https://api.github.com/repos/moderntribe/the-events-calendar/hooks","issue_events_url":"https://api.github.com/repos/moderntribe/the-events-calendar/issues/events{/number}","events_url":"https://api.github.com/repos/moderntribe/the-events-calendar/events","assignees_url":"https://api.github.com/repos/moderntribe/the-events-calendar/assignees{/user}","branches_url":"https://api.github.com/repos/moderntribe/the-events-calendar/branches{/branch}","tags_url":"https://api.github.com/repos/moderntribe/the-events-calendar/tags","blobs_url":"https://api.github.com/repos/moderntribe/the-events-calendar/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/moderntribe/the-events-calendar/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/moderntribe/the-events-calendar/git/refs{/sha}","trees_url":"https://api.github.com/repos/moderntribe/the-events-calendar/git/trees{/sha}","statuses_url":"https://api.github.com/repos/moderntribe/the-events-calendar/statuses/{sha}","languages_url":"https://api.github.com/repos/moderntribe/the-events-calendar/languages","stargazers_url":"https://api.github.com/repos/moderntribe/the-events-calendar/stargazers","contributors_url":"https://api.github.com/repos/moderntribe/the-events-calendar/contributors","subscribers_url":"https://api.github.com/repos/moderntribe/the-events-calendar/subscribers","subscription_url":"https://api.github.com/repos/moderntribe/the-events-calendar/subscription","commits_url":"https://api.github.com/repos/moderntribe/the-events-calendar/commits{/sha}","git_commits_url":"https://api.github.com/repos/moderntribe/the-events-calendar/git/commits{/sha}","comments_url":"https://api.github.com/repos/moderntribe/the-events-calendar/comments{/number}","issue_comment_url":"https://api.github.com/repos/moderntribe/the-events-calendar/issues/comments{/number}","contents_url":"https://api.github.com/repos/moderntribe/the-events-calendar/contents/{+path}","compare_url":"https://api.github.com/repos/moderntribe/the-events-calendar/compare/{base}...{head}","merges_url":"https://api.github.com/repos/moderntribe/the-events-calendar/merges","archive_url":"https://api.github.com/repos/moderntribe/the-events-calendar/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/moderntribe/the-events-calendar/downloads","issues_url":"https://api.github.com/repos/moderntribe/the-events-calendar/issues{/number}","pulls_url":"https://api.github.com/repos/moderntribe/the-events-calendar/pulls{/number}","milestones_url":"https://api.github.com/repos/moderntribe/the-events-calendar/milestones{/number}","notifications_url":"https://api.github.com/repos/moderntribe/the-events-calendar/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/moderntribe/the-events-calendar/labels{/name}","releases_url":"https://api.github.com/repos/moderntribe/the-events-calendar/releases{/id}","created_at":"2014-01-30T02:17:01Z","updated_at":"2015-09-24T17:25:36Z","pushed_at":"2015-10-06T19:00:29Z","git_url":"git://github.com/moderntribe/the-events-calendar.git","ssh_url":"git@github.com:moderntribe/the-events-calendar.git","clone_url":"https://github.com/moderntribe/the-events-calendar.git","svn_url":"https://github.com/moderntribe/the-events-calendar","homepage":null,"size":63390,"stargazers_count":68,"watchers_count":68,"language":"PHP","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":66,"mirror_url":null,"open_issues_count":6,"forks":66,"open_issues":6,"watchers":68,"default_branch":"release/121"}},"base":{"label":"moderntribe:release/121","ref":"release/121","sha":"49de69578eacc5f89ed75b4b0ea8dba67351fb2a","user":{"login":"moderntribe","id":2279551,"avatar_url":"https://avatars.githubusercontent.com/u/2279551?v=3","gravatar_id":"","url":"https://api.github.com/users/moderntribe","html_url":"https://github.com/moderntribe","followers_url":"https://api.github.com/users/moderntribe/followers","following_url":"https://api.github.com/users/moderntribe/following{/other_user}","gists_url":"https://api.github.com/users/moderntribe/gists{/gist_id}","starred_url":"https://api.github.com/users/moderntribe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/moderntribe/subscriptions","organizations_url":"https://api.github.com/users/moderntribe/orgs","repos_url":"https://api.github.com/users/moderntribe/repos","events_url":"https://api.github.com/users/moderntribe/events{/privacy}","received_events_url":"https://api.github.com/users/moderntribe/received_events","type":"Organization","site_admin":false},"repo":{"id":16366134,"name":"the-events-calendar","full_name":"moderntribe/the-events-calendar","owner":{"login":"moderntribe","id":2279551,"avatar_url":"https://avatars.githubusercontent.com/u/2279551?v=3","gravatar_id":"","url":"https://api.github.com/users/moderntribe","html_url":"https://github.com/moderntribe","followers_url":"https://api.github.com/users/moderntribe/followers","following_url":"https://api.github.com/users/moderntribe/following{/other_user}","gists_url":"https://api.github.com/users/moderntribe/gists{/gist_id}","starred_url":"https://api.github.com/users/moderntribe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/moderntribe/subscriptions","organizations_url":"https://api.github.com/users/moderntribe/orgs","repos_url":"https://api.github.com/users/moderntribe/repos","events_url":"https://api.github.com/users/moderntribe/events{/privacy}","received_events_url":"https://api.github.com/users/moderntribe/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/moderntribe/the-events-calendar","description":"The Events Calendar WordPress plugin by Modern Tribe","fork":false,"url":"https://api.github.com/repos/moderntribe/the-events-calendar","forks_url":"https://api.github.com/repos/moderntribe/the-events-calendar/forks","keys_url":"https://api.github.com/repos/moderntribe/the-events-calendar/keys{/key_id}","collaborators_url":"https://api.github.com/repos/moderntribe/the-events-calendar/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/moderntribe/the-events-calendar/teams","hooks_url":"https://api.github.com/repos/moderntribe/the-events-calendar/hooks","issue_events_url":"https://api.github.com/repos/moderntribe/the-events-calendar/issues/events{/number}","events_url":"https://api.github.com/repos/moderntribe/the-events-calendar/events","assignees_url":"https://api.github.com/repos/moderntribe/the-events-calendar/assignees{/user}","branches_url":"https://api.github.com/repos/moderntribe/the-events-calendar/branches{/branch}","tags_url":"https://api.github.com/repos/moderntribe/the-events-calendar/tags","blobs_url":"https://api.github.com/repos/moderntribe/the-events-calendar/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/moderntribe/the-events-calendar/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/moderntribe/the-events-calendar/git/refs{/sha}","trees_url":"https://api.github.com/repos/moderntribe/the-events-calendar/git/trees{/sha}","statuses_url":"https://api.github.com/repos/moderntribe/the-events-calendar/statuses/{sha}","languages_url":"https://api.github.com/repos/moderntribe/the-events-calendar/languages","stargazers_url":"https://api.github.com/repos/moderntribe/the-events-calendar/stargazers","contributors_url":"https://api.github.com/repos/moderntribe/the-events-calendar/contributors","subscribers_url":"https://api.github.com/repos/moderntribe/the-events-calendar/subscribers","subscription_url":"https://api.github.com/repos/moderntribe/the-events-calendar/subscription","commits_url":"https://api.github.com/repos/moderntribe/the-events-calendar/commits{/sha}","git_commits_url":"https://api.github.com/repos/moderntribe/the-events-calendar/git/commits{/sha}","comments_url":"https://api.github.com/repos/moderntribe/the-events-calendar/comments{/number}","issue_comment_url":"https://api.github.com/repos/moderntribe/the-events-calendar/issues/comments{/number}","contents_url":"https://api.github.com/repos/moderntribe/the-events-calendar/contents/{+path}","compare_url":"https://api.github.com/repos/moderntribe/the-events-calendar/compare/{base}...{head}","merges_url":"https://api.github.com/repos/moderntribe/the-events-calendar/merges","archive_url":"https://api.github.com/repos/moderntribe/the-events-calendar/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/moderntribe/the-events-calendar/downloads","issues_url":"https://api.github.com/repos/moderntribe/the-events-calendar/issues{/number}","pulls_url":"https://api.github.com/repos/moderntribe/the-events-calendar/pulls{/number}","milestones_url":"https://api.github.com/repos/moderntribe/the-events-calendar/milestones{/number}","notifications_url":"https://api.github.com/repos/moderntribe/the-events-calendar/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/moderntribe/the-events-calendar/labels{/name}","releases_url":"https://api.github.com/repos/moderntribe/the-events-calendar/releases{/id}","created_at":"2014-01-30T02:17:01Z","updated_at":"2015-09-24T17:25:36Z","pushed_at":"2015-10-06T19:00:29Z","git_url":"git://github.com/moderntribe/the-events-calendar.git","ssh_url":"git@github.com:moderntribe/the-events-calendar.git","clone_url":"https://github.com/moderntribe/the-events-calendar.git","svn_url":"https://github.com/moderntribe/the-events-calendar","homepage":null,"size":63390,"stargazers_count":68,"watchers_count":68,"language":"PHP","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":66,"mirror_url":null,"open_issues_count":6,"forks":66,"open_issues":6,"watchers":68,"default_branch":"release/121"}},"_links":{"self":{"href":"https://api.github.com/repos/moderntribe/the-events-calendar/pulls/354"},"html":{"href":"https://github.com/moderntribe/the-events-calendar/pull/354"},"issue":{"href":"https://api.github.com/repos/moderntribe/the-events-calendar/issues/354"},"comments":{"href":"https://api.github.com/repos/moderntribe/the-events-calendar/issues/354/comments"},"review_comments":{"href":"https://api.github.com/repos/moderntribe/the-events-calendar/pulls/354/comments"},"review_comment":{"href":"https://api.github.com/repos/moderntribe/the-events-calendar/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/moderntribe/the-events-calendar/pulls/354/commits"},"statuses":{"href":"https://api.github.com/repos/moderntribe/the-events-calendar/statuses/6c0d5b442fb465310c81bb948e3dcfd5d6a81296"}}}}