{"action":"created","comment":{"url":"https://api.github.com/repos/humanmade/WordPress-Importer/pulls/comments/59195958","id":59195958,"diff_hunk":"@@ -0,0 +1,134 @@\n+<?php\n+/**\n+ * Options for the import (step 1).\n+ */\n+\n+$generator = $data->generator;\n+if ( preg_match( '#^http://wordpress\\.org/\\?v=(\\d+\\.\\d+\\.\\d+)$#', $generator, $matches ) ) {\n+\t$generator = sprintf( __( 'WordPress %s', 'wordpress-importer' ), $matches[1] );\n+}\n+\n+?>\n+<div class=\"welcome-panel\">\n+\t<div class=\"welcome-panel-content\">\n+\t\t<h2><?php esc_html_e( 'Step 2: Import Settings', 'wordpress-importer' ) ?></h2>\n+\t\t<p><?php esc_html_e( 'Your import is almost ready to go. Before your content is imported, pick exactly how you want your data imported.', 'wordpress-importer' ) ?></p>\n+\n+\t\t<div class=\"welcome-panel-column-container\">\n+\t\t\t<div class=\"welcome-panel-column\">\n+\t\t\t\t<h3><?php esc_html_e( 'Import Summary', 'wordpress-importer' ) ?></h3>\n+\t\t\t\t<ul>\n+\t\t\t\t\t<li>\n+\t\t\t\t\t\t<span class=\"dashicons dashicons-admin-post\"></span>\n+\t\t\t\t\t\t<?php echo esc_html( sprintf(\n+\t\t\t\t\t\t\t_n( '%d post (including CPTs)', '%d posts (including CPTs)', $data->post_count, 'wordpress-importer' ),\n+\t\t\t\t\t\t\t$data->post_count\n+\t\t\t\t\t\t)) ?>\n+\t\t\t\t\t</li>\n+\t\t\t\t\t<li>\n+\t\t\t\t\t\t<span class=\"dashicons dashicons-admin-media\"></span>\n+\t\t\t\t\t\t<?php echo esc_html( sprintf(\n+\t\t\t\t\t\t\t_n( '%d media item', '%d media items', $data->media_count, 'wordpress-importer' ),\n+\t\t\t\t\t\t\t$data->media_count\n+\t\t\t\t\t\t)) ?>\n+\t\t\t\t\t</li>\n+\t\t\t\t\t<li>\n+\t\t\t\t\t\t<span class=\"dashicons dashicons-admin-users\"></span>\n+\t\t\t\t\t\t<?php echo esc_html( sprintf(\n+\t\t\t\t\t\t\t_n( '%d user', '%d users', count( $data->users ), 'wordpress-importer' ),\n+\t\t\t\t\t\t\tcount( $data->users )\n+\t\t\t\t\t\t)) ?>\n+\t\t\t\t\t</li>\n+\t\t\t\t\t<li>\n+\t\t\t\t\t\t<span class=\"dashicons dashicons-admin-comments\"></span>\n+\t\t\t\t\t\t<?php echo esc_html( sprintf(\n+\t\t\t\t\t\t\t_n( '%d comment', '%d comments', $data->comment_count, 'wordpress-importer' ),\n+\t\t\t\t\t\t\t$data->comment_count\n+\t\t\t\t\t\t)) ?>\n+\t\t\t\t\t</li>\n+\t\t\t\t\t<li>\n+\t\t\t\t\t\t<span class=\"dashicons dashicons-category\"></span>\n+\t\t\t\t\t\t<?php echo esc_html( sprintf(\n+\t\t\t\t\t\t\t_n( '%d term', '%d terms', $data->term_count, 'wordpress-importer' ),\n+\t\t\t\t\t\t\t$data->term_count\n+\t\t\t\t\t\t)) ?>\n+\t\t\t\t\t</li>\n+\t\t\t\t</ul>\n+\t\t\t</div>\n+\t\t\t<div class=\"welcome-panel-column\">\n+\t\t\t\t<h3><?php esc_html_e( 'Facts About Your Import', 'wordpress-importer' ) ?></h3>\n+\t\t\t\t<ul>\n+\t\t\t\t\t<li>\n+\t\t\t\t\t\t<?php echo wp_kses( sprintf(\n+\t\t\t\t\t\t\t__( 'Exported from <a href=\"%1$s\">%2$s</a>', 'wordpress-importer' ),\n+\t\t\t\t\t\t\tesc_url( $data->home ),\n+\t\t\t\t\t\t\tesc_html( $data->title )\n+\t\t\t\t\t\t), 'data' ) ?>\n+\t\t\t\t\t</li>\n+\t\t\t\t\t<li>\n+\t\t\t\t\t\t<?php echo esc_html( sprintf(\n+\t\t\t\t\t\t\t__( 'Generated by %s', 'wordpress-importer' ),\n+\t\t\t\t\t\t\t$generator\n+\t\t\t\t\t\t)) ?>\n+\t\t\t\t\t</li>\n+\t\t\t\t\t<li>\n+\t\t\t\t\t\t<?php echo esc_html( sprintf(\n+\t\t\t\t\t\t\t__( 'Format: WXR v%s', 'wordpress-importer' ),\n+\t\t\t\t\t\t\t$data->version\n+\t\t\t\t\t\t)) ?>\n+\t\t\t\t\t</li>\n+\t\t\t\t</ul>\n+\t\t\t</div>\n+\t\t\t<div class=\"welcome-panel-column\">\n+\t\t\t\t<h3><?php esc_html_e( 'Facts About the Sea Lion', 'wordpress-importer' ) ?></h3>\n+\t\t\t\t<ul>\n+\t\t\t\t\t<li><?php esc_html_e( 'Unlike seals, sea lions have external ear flaps.', 'wordpress-importer' ) ?></li>\n+\t\t\t\t\t<li><?php esc_html_e( 'Sea lions are carnivorous and primarily eat fish and squid.', 'wordpress-importer' ) ?></li>\n+\t\t\t\t</ul>\n+\t\t\t</div>\n+\t\t</div>\n+\t</div>\n+</div>\n+\n+<form action=\"<?php echo $this->get_url( 2 ) ?>\" method=\"post\">\n+\n+\t<?php if ( ! empty( $data->users ) ) : ?>\n+\n+\t\t<h3><?php esc_html_e( 'Assign Authors', 'wordpress-importer' ) ?></h3>\n+\t\t<p><?php _e( 'To make it easier for you to edit and save the imported content, you may want to reassign the author of the imported item to an existing user of this site. For example, you may want to import all the entries as <code>admin</code>s entries.', 'wordpress-importer' ) ?></p>","path":"templates/select-options.php","position":98,"original_position":98,"commit_id":"0440c1f895239308738df9d19f6d35c61254a458","original_commit_id":"0440c1f895239308738df9d19f6d35c61254a458","user":{"login":"sanchothefat","id":23417,"avatar_url":"https://avatars.githubusercontent.com/u/23417?v=3","gravatar_id":"","url":"https://api.github.com/users/sanchothefat","html_url":"https://github.com/sanchothefat","followers_url":"https://api.github.com/users/sanchothefat/followers","following_url":"https://api.github.com/users/sanchothefat/following{/other_user}","gists_url":"https://api.github.com/users/sanchothefat/gists{/gist_id}","starred_url":"https://api.github.com/users/sanchothefat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sanchothefat/subscriptions","organizations_url":"https://api.github.com/users/sanchothefat/orgs","repos_url":"https://api.github.com/users/sanchothefat/repos","events_url":"https://api.github.com/users/sanchothefat/events{/privacy}","received_events_url":"https://api.github.com/users/sanchothefat/received_events","type":"User","site_admin":false},"body":"Some inconsistency on these, `esc_html_e()` here too?","created_at":"2016-04-11T12:34:10Z","updated_at":"2016-04-11T12:34:10Z","html_url":"https://github.com/humanmade/WordPress-Importer/pull/26#discussion_r59195958","pull_request_url":"https://api.github.com/repos/humanmade/WordPress-Importer/pulls/26","_links":{"self":{"href":"https://api.github.com/repos/humanmade/WordPress-Importer/pulls/comments/59195958"},"html":{"href":"https://github.com/humanmade/WordPress-Importer/pull/26#discussion_r59195958"},"pull_request":{"href":"https://api.github.com/repos/humanmade/WordPress-Importer/pulls/26"}}},"pull_request":{"url":"https://api.github.com/repos/humanmade/WordPress-Importer/pulls/26","id":65117319,"html_url":"https://github.com/humanmade/WordPress-Importer/pull/26","diff_url":"https://github.com/humanmade/WordPress-Importer/pull/26.diff","patch_url":"https://github.com/humanmade/WordPress-Importer/pull/26.patch","issue_url":"https://api.github.com/repos/humanmade/WordPress-Importer/issues/26","number":26,"state":"open","locked":false,"title":"Add admin UI","user":{"login":"rmccue","id":21655,"avatar_url":"https://avatars.githubusercontent.com/u/21655?v=3","gravatar_id":"","url":"https://api.github.com/users/rmccue","html_url":"https://github.com/rmccue","followers_url":"https://api.github.com/users/rmccue/followers","following_url":"https://api.github.com/users/rmccue/following{/other_user}","gists_url":"https://api.github.com/users/rmccue/gists{/gist_id}","starred_url":"https://api.github.com/users/rmccue/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rmccue/subscriptions","organizations_url":"https://api.github.com/users/rmccue/orgs","repos_url":"https://api.github.com/users/rmccue/repos","events_url":"https://api.github.com/users/rmccue/events{/privacy}","received_events_url":"https://api.github.com/users/rmccue/received_events","type":"User","site_admin":false},"body":"See #1.","created_at":"2016-04-04T09:33:51Z","updated_at":"2016-04-11T12:34:10Z","closed_at":null,"merged_at":null,"merge_commit_sha":"97b149b6f53a135926cc2523652a265580c14c2d","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/humanmade/WordPress-Importer/pulls/26/commits","review_comments_url":"https://api.github.com/repos/humanmade/WordPress-Importer/pulls/26/comments","review_comment_url":"https://api.github.com/repos/humanmade/WordPress-Importer/pulls/comments{/number}","comments_url":"https://api.github.com/repos/humanmade/WordPress-Importer/issues/26/comments","statuses_url":"https://api.github.com/repos/humanmade/WordPress-Importer/statuses/0440c1f895239308738df9d19f6d35c61254a458","head":{"label":"humanmade:admin-ui","ref":"admin-ui","sha":"0440c1f895239308738df9d19f6d35c61254a458","user":{"login":"humanmade","id":644666,"avatar_url":"https://avatars.githubusercontent.com/u/644666?v=3","gravatar_id":"","url":"https://api.github.com/users/humanmade","html_url":"https://github.com/humanmade","followers_url":"https://api.github.com/users/humanmade/followers","following_url":"https://api.github.com/users/humanmade/following{/other_user}","gists_url":"https://api.github.com/users/humanmade/gists{/gist_id}","starred_url":"https://api.github.com/users/humanmade/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/humanmade/subscriptions","organizations_url":"https://api.github.com/users/humanmade/orgs","repos_url":"https://api.github.com/users/humanmade/repos","events_url":"https://api.github.com/users/humanmade/events{/privacy}","received_events_url":"https://api.github.com/users/humanmade/received_events","type":"Organization","site_admin":false},"repo":{"id":41078181,"name":"WordPress-Importer","full_name":"humanmade/WordPress-Importer","owner":{"login":"humanmade","id":644666,"avatar_url":"https://avatars.githubusercontent.com/u/644666?v=3","gravatar_id":"","url":"https://api.github.com/users/humanmade","html_url":"https://github.com/humanmade","followers_url":"https://api.github.com/users/humanmade/followers","following_url":"https://api.github.com/users/humanmade/following{/other_user}","gists_url":"https://api.github.com/users/humanmade/gists{/gist_id}","starred_url":"https://api.github.com/users/humanmade/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/humanmade/subscriptions","organizations_url":"https://api.github.com/users/humanmade/orgs","repos_url":"https://api.github.com/users/humanmade/repos","events_url":"https://api.github.com/users/humanmade/events{/privacy}","received_events_url":"https://api.github.com/users/humanmade/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/humanmade/WordPress-Importer","description":"In-development rewrite of the WordPress (WXR) Importer","fork":false,"url":"https://api.github.com/repos/humanmade/WordPress-Importer","forks_url":"https://api.github.com/repos/humanmade/WordPress-Importer/forks","keys_url":"https://api.github.com/repos/humanmade/WordPress-Importer/keys{/key_id}","collaborators_url":"https://api.github.com/repos/humanmade/WordPress-Importer/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/humanmade/WordPress-Importer/teams","hooks_url":"https://api.github.com/repos/humanmade/WordPress-Importer/hooks","issue_events_url":"https://api.github.com/repos/humanmade/WordPress-Importer/issues/events{/number}","events_url":"https://api.github.com/repos/humanmade/WordPress-Importer/events","assignees_url":"https://api.github.com/repos/humanmade/WordPress-Importer/assignees{/user}","branches_url":"https://api.github.com/repos/humanmade/WordPress-Importer/branches{/branch}","tags_url":"https://api.github.com/repos/humanmade/WordPress-Importer/tags","blobs_url":"https://api.github.com/repos/humanmade/WordPress-Importer/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/humanmade/WordPress-Importer/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/humanmade/WordPress-Importer/git/refs{/sha}","trees_url":"https://api.github.com/repos/humanmade/WordPress-Importer/git/trees{/sha}","statuses_url":"https://api.github.com/repos/humanmade/WordPress-Importer/statuses/{sha}","languages_url":"https://api.github.com/repos/humanmade/WordPress-Importer/languages","stargazers_url":"https://api.github.com/repos/humanmade/WordPress-Importer/stargazers","contributors_url":"https://api.github.com/repos/humanmade/WordPress-Importer/contributors","subscribers_url":"https://api.github.com/repos/humanmade/WordPress-Importer/subscribers","subscription_url":"https://api.github.com/repos/humanmade/WordPress-Importer/subscription","commits_url":"https://api.github.com/repos/humanmade/WordPress-Importer/commits{/sha}","git_commits_url":"https://api.github.com/repos/humanmade/WordPress-Importer/git/commits{/sha}","comments_url":"https://api.github.com/repos/humanmade/WordPress-Importer/comments{/number}","issue_comment_url":"https://api.github.com/repos/humanmade/WordPress-Importer/issues/comments{/number}","contents_url":"https://api.github.com/repos/humanmade/WordPress-Importer/contents/{+path}","compare_url":"https://api.github.com/repos/humanmade/WordPress-Importer/compare/{base}...{head}","merges_url":"https://api.github.com/repos/humanmade/WordPress-Importer/merges","archive_url":"https://api.github.com/repos/humanmade/WordPress-Importer/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/humanmade/WordPress-Importer/downloads","issues_url":"https://api.github.com/repos/humanmade/WordPress-Importer/issues{/number}","pulls_url":"https://api.github.com/repos/humanmade/WordPress-Importer/pulls{/number}","milestones_url":"https://api.github.com/repos/humanmade/WordPress-Importer/milestones{/number}","notifications_url":"https://api.github.com/repos/humanmade/WordPress-Importer/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/humanmade/WordPress-Importer/labels{/name}","releases_url":"https://api.github.com/repos/humanmade/WordPress-Importer/releases{/id}","deployments_url":"https://api.github.com/repos/humanmade/WordPress-Importer/deployments","created_at":"2015-08-20T05:56:39Z","updated_at":"2016-04-09T01:41:06Z","pushed_at":"2016-04-11T09:34:30Z","git_url":"git://github.com/humanmade/WordPress-Importer.git","ssh_url":"git@github.com:humanmade/WordPress-Importer.git","clone_url":"https://github.com/humanmade/WordPress-Importer.git","svn_url":"https://github.com/humanmade/WordPress-Importer","homepage":null,"size":145,"stargazers_count":122,"watchers_count":122,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":14,"mirror_url":null,"open_issues_count":18,"forks":14,"open_issues":18,"watchers":122,"default_branch":"master"}},"base":{"label":"humanmade:master","ref":"master","sha":"afe084bd65da938a44c9db162d5e386c1cb7f917","user":{"login":"humanmade","id":644666,"avatar_url":"https://avatars.githubusercontent.com/u/644666?v=3","gravatar_id":"","url":"https://api.github.com/users/humanmade","html_url":"https://github.com/humanmade","followers_url":"https://api.github.com/users/humanmade/followers","following_url":"https://api.github.com/users/humanmade/following{/other_user}","gists_url":"https://api.github.com/users/humanmade/gists{/gist_id}","starred_url":"https://api.github.com/users/humanmade/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/humanmade/subscriptions","organizations_url":"https://api.github.com/users/humanmade/orgs","repos_url":"https://api.github.com/users/humanmade/repos","events_url":"https://api.github.com/users/humanmade/events{/privacy}","received_events_url":"https://api.github.com/users/humanmade/received_events","type":"Organization","site_admin":false},"repo":{"id":41078181,"name":"WordPress-Importer","full_name":"humanmade/WordPress-Importer","owner":{"login":"humanmade","id":644666,"avatar_url":"https://avatars.githubusercontent.com/u/644666?v=3","gravatar_id":"","url":"https://api.github.com/users/humanmade","html_url":"https://github.com/humanmade","followers_url":"https://api.github.com/users/humanmade/followers","following_url":"https://api.github.com/users/humanmade/following{/other_user}","gists_url":"https://api.github.com/users/humanmade/gists{/gist_id}","starred_url":"https://api.github.com/users/humanmade/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/humanmade/subscriptions","organizations_url":"https://api.github.com/users/humanmade/orgs","repos_url":"https://api.github.com/users/humanmade/repos","events_url":"https://api.github.com/users/humanmade/events{/privacy}","received_events_url":"https://api.github.com/users/humanmade/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/humanmade/WordPress-Importer","description":"In-development rewrite of the WordPress (WXR) Importer","fork":false,"url":"https://api.github.com/repos/humanmade/WordPress-Importer","forks_url":"https://api.github.com/repos/humanmade/WordPress-Importer/forks","keys_url":"https://api.github.com/repos/humanmade/WordPress-Importer/keys{/key_id}","collaborators_url":"https://api.github.com/repos/humanmade/WordPress-Importer/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/humanmade/WordPress-Importer/teams","hooks_url":"https://api.github.com/repos/humanmade/WordPress-Importer/hooks","issue_events_url":"https://api.github.com/repos/humanmade/WordPress-Importer/issues/events{/number}","events_url":"https://api.github.com/repos/humanmade/WordPress-Importer/events","assignees_url":"https://api.github.com/repos/humanmade/WordPress-Importer/assignees{/user}","branches_url":"https://api.github.com/repos/humanmade/WordPress-Importer/branches{/branch}","tags_url":"https://api.github.com/repos/humanmade/WordPress-Importer/tags","blobs_url":"https://api.github.com/repos/humanmade/WordPress-Importer/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/humanmade/WordPress-Importer/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/humanmade/WordPress-Importer/git/refs{/sha}","trees_url":"https://api.github.com/repos/humanmade/WordPress-Importer/git/trees{/sha}","statuses_url":"https://api.github.com/repos/humanmade/WordPress-Importer/statuses/{sha}","languages_url":"https://api.github.com/repos/humanmade/WordPress-Importer/languages","stargazers_url":"https://api.github.com/repos/humanmade/WordPress-Importer/stargazers","contributors_url":"https://api.github.com/repos/humanmade/WordPress-Importer/contributors","subscribers_url":"https://api.github.com/repos/humanmade/WordPress-Importer/subscribers","subscription_url":"https://api.github.com/repos/humanmade/WordPress-Importer/subscription","commits_url":"https://api.github.com/repos/humanmade/WordPress-Importer/commits{/sha}","git_commits_url":"https://api.github.com/repos/humanmade/WordPress-Importer/git/commits{/sha}","comments_url":"https://api.github.com/repos/humanmade/WordPress-Importer/comments{/number}","issue_comment_url":"https://api.github.com/repos/humanmade/WordPress-Importer/issues/comments{/number}","contents_url":"https://api.github.com/repos/humanmade/WordPress-Importer/contents/{+path}","compare_url":"https://api.github.com/repos/humanmade/WordPress-Importer/compare/{base}...{head}","merges_url":"https://api.github.com/repos/humanmade/WordPress-Importer/merges","archive_url":"https://api.github.com/repos/humanmade/WordPress-Importer/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/humanmade/WordPress-Importer/downloads","issues_url":"https://api.github.com/repos/humanmade/WordPress-Importer/issues{/number}","pulls_url":"https://api.github.com/repos/humanmade/WordPress-Importer/pulls{/number}","milestones_url":"https://api.github.com/repos/humanmade/WordPress-Importer/milestones{/number}","notifications_url":"https://api.github.com/repos/humanmade/WordPress-Importer/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/humanmade/WordPress-Importer/labels{/name}","releases_url":"https://api.github.com/repos/humanmade/WordPress-Importer/releases{/id}","deployments_url":"https://api.github.com/repos/humanmade/WordPress-Importer/deployments","created_at":"2015-08-20T05:56:39Z","updated_at":"2016-04-09T01:41:06Z","pushed_at":"2016-04-11T09:34:30Z","git_url":"git://github.com/humanmade/WordPress-Importer.git","ssh_url":"git@github.com:humanmade/WordPress-Importer.git","clone_url":"https://github.com/humanmade/WordPress-Importer.git","svn_url":"https://github.com/humanmade/WordPress-Importer","homepage":null,"size":145,"stargazers_count":122,"watchers_count":122,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":14,"mirror_url":null,"open_issues_count":18,"forks":14,"open_issues":18,"watchers":122,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/humanmade/WordPress-Importer/pulls/26"},"html":{"href":"https://github.com/humanmade/WordPress-Importer/pull/26"},"issue":{"href":"https://api.github.com/repos/humanmade/WordPress-Importer/issues/26"},"comments":{"href":"https://api.github.com/repos/humanmade/WordPress-Importer/issues/26/comments"},"review_comments":{"href":"https://api.github.com/repos/humanmade/WordPress-Importer/pulls/26/comments"},"review_comment":{"href":"https://api.github.com/repos/humanmade/WordPress-Importer/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/humanmade/WordPress-Importer/pulls/26/commits"},"statuses":{"href":"https://api.github.com/repos/humanmade/WordPress-Importer/statuses/0440c1f895239308738df9d19f6d35c61254a458"}}}}