{"action":"created","comment":{"url":"https://api.github.com/repos/Automattic/jetpack/pulls/comments/47410282","id":47410282,"diff_hunk":"@@ -98,6 +126,88 @@ function photon_msg() {\n \t\t}\n \t}\n \n+\t/**\n+\t * Display message prompting user to enable auto-updates in WordPress.com.\n+\t *\n+\t * @since 3.8.2\n+\t */\n+\tfunction manage_pi_msg() {\n+\t\tif ( current_user_can( 'jetpack_manage_modules' ) ) {\n+\t\t\t$normalized_site_url = Jetpack::build_raw_urls( get_home_url() );\n+\t\t\t$manage_active = Jetpack::is_module_active( 'manage' );\n+\t\t\t$manage_pi_dismissed = isset( self::$jetpack_hide_jitm['manage-pi'] );\n+\n+\t\t\tif ( ! $manage_active || ! $manage_pi_dismissed ) :\n+\t\t\t?>\n+\t\t\t<div class=\"jp-jitm\">\n+\t\t\t\t<a href=\"#\"  data-module=\"manage-pi\" class=\"dismiss\"><span class=\"genericon genericon-close\"></span></a>\n+\t\t\t\t<div class=\"jp-emblem\">\n+\t\t\t\t\t<svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" version=\"1.1\" id=\"Layer_1\" x=\"0\" y=\"0\" viewBox=\"0 0 172.9 172.9\" enable-background=\"new 0 0 172.9 172.9\" xml:space=\"preserve\">\n+\t\t\t\t\t\t<path d=\"M86.4 0C38.7 0 0 38.7 0 86.4c0 47.7 38.7 86.4 86.4 86.4s86.4-38.7 86.4-86.4C172.9 38.7 134.2 0 86.4 0zM83.1 106.6l-27.1-6.9C49 98 45.7 90.1 49.3 84l33.8-58.5V106.6zM124.9 88.9l-33.8 58.5V66.3l27.1 6.9C125.1 74.9 128.4 82.8 124.9 88.9z\"/>\n+\t\t\t\t\t</svg>\n+\t\t\t\t</div>\n+\t\t\t\t<?php if ( ! $manage_active ) : ?>\n+\t\t\t\t\t<p class=\"msg\">\n+\t\t\t\t\t\t<?php _e( 'Save time with automated plugin updates.', 'jetpack' ); ?>\n+\t\t\t\t\t</p>\n+\t\t\t\t\t<p>\n+\t\t\t\t\t\t<img class=\"j-spinner hide\" src=\"<?php echo esc_url( includes_url( 'images/spinner-2x.gif' ) ); ?>\" alt=\"<?php echo esc_attr__( 'Loading...', 'jetpack' ); ?>\" /><a href=\"#\" data-module=\"manage\" data-module-success=\"<?php esc_attr_e( 'Success!', 'jetpack' ); ?>\" class=\"activate button\"><?php esc_html_e( 'Activate remote management', 'jetpack'\t); ?></a>\n+\t\t\t\t\t</p>\n+\t\t\t\t<?php elseif ( $manage_active ) : ?>\n+\t\t\t\t\t<p>\n+\t\t\t\t\t\t<?php esc_html_e( 'Save time with auto updates on WordPress.com', 'jetpack' ); ?>\n+\t\t\t\t\t</p>\n+\t\t\t\t<?php endif; // manage inactive ?>\n+\t\t\t\t<?php if ( ! $manage_pi_dismissed ) : ?>\n+\t\t\t\t\t<p class=\"show-after-enable <?php echo $manage_active ? '' : 'hide' ; ?>\">\n+\t\t\t\t\t\t<a href=\"<?php echo esc_url( 'https://wordpress.com/plugins/' . $normalized_site_url ); ?>\" target=\"_blank\" title=\"<?php esc_attr_e( 'Go to WordPress.com to enable auto-updates for plugins', 'jetpack' ); ?>\" data-module=\"manage-pi\" class=\"button button-jetpack launch show-after-enable\"><?php esc_html_e( 'Enable auto-updates on WordPress.com', 'jetpack' ); ?></a>\n+\t\t\t\t\t</p>\n+\t\t\t\t<?php endif; // manage-pi inactive ?>\n+\t\t\t</div>\n+\t\t\t<?php\n+\t\t\t//jitm is being viewed, track it\n+\t\t\t$jetpack = Jetpack::init();\n+\t\t\t$jetpack->stat( 'jitm', 'manage-pi-viewed-' . JETPACK__VERSION );\n+\t\t\t$jetpack->do_stats( 'server_side' );\n+\t\t\tendif; // manage or manage-pi inactive\n+\t\t}\n+\t}\n+\n+\t/**\n+\t * Display message in editor prompting user to compose entry in WordPress.com.\n+\t *\n+\t * @since 3.8.2\n+\t */\n+\tfunction editor_msg() {\n+\t\t$post_type = get_post_type();","path":"class.jetpack-jitm.php","position":null,"original_position":117,"commit_id":"bfda3b3585d643bc46f952d2091e74451b5ce76e","original_commit_id":"21db85fd7c93e756072f0e78996edb253fd49e69","user":{"login":"eliorivero","id":1041600,"avatar_url":"https://avatars.githubusercontent.com/u/1041600?v=3","gravatar_id":"","url":"https://api.github.com/users/eliorivero","html_url":"https://github.com/eliorivero","followers_url":"https://api.github.com/users/eliorivero/followers","following_url":"https://api.github.com/users/eliorivero/following{/other_user}","gists_url":"https://api.github.com/users/eliorivero/gists{/gist_id}","starred_url":"https://api.github.com/users/eliorivero/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eliorivero/subscriptions","organizations_url":"https://api.github.com/users/eliorivero/orgs","repos_url":"https://api.github.com/users/eliorivero/repos","events_url":"https://api.github.com/users/eliorivero/events{/privacy}","received_events_url":"https://api.github.com/users/eliorivero/received_events","type":"User","site_admin":false},"body":"Changed.","created_at":"2015-12-11T21:56:54Z","updated_at":"2015-12-11T21:56:54Z","html_url":"https://github.com/Automattic/jetpack/pull/3137#discussion_r47410282","pull_request_url":"https://api.github.com/repos/Automattic/jetpack/pulls/3137","_links":{"self":{"href":"https://api.github.com/repos/Automattic/jetpack/pulls/comments/47410282"},"html":{"href":"https://github.com/Automattic/jetpack/pull/3137#discussion_r47410282"},"pull_request":{"href":"https://api.github.com/repos/Automattic/jetpack/pulls/3137"}}},"pull_request":{"url":"https://api.github.com/repos/Automattic/jetpack/pulls/3137","id":53446081,"html_url":"https://github.com/Automattic/jetpack/pull/3137","diff_url":"https://github.com/Automattic/jetpack/pull/3137.diff","patch_url":"https://github.com/Automattic/jetpack/pull/3137.patch","issue_url":"https://api.github.com/repos/Automattic/jetpack/issues/3137","number":3137,"state":"open","locked":false,"title":"JITMs for Plugins and Add New screens","user":{"login":"eliorivero","id":1041600,"avatar_url":"https://avatars.githubusercontent.com/u/1041600?v=3","gravatar_id":"","url":"https://api.github.com/users/eliorivero","html_url":"https://github.com/eliorivero","followers_url":"https://api.github.com/users/eliorivero/followers","following_url":"https://api.github.com/users/eliorivero/following{/other_user}","gists_url":"https://api.github.com/users/eliorivero/gists{/gist_id}","starred_url":"https://api.github.com/users/eliorivero/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eliorivero/subscriptions","organizations_url":"https://api.github.com/users/eliorivero/orgs","repos_url":"https://api.github.com/users/eliorivero/repos","events_url":"https://api.github.com/users/eliorivero/events{/privacy}","received_events_url":"https://api.github.com/users/eliorivero/received_events","type":"User","site_admin":false},"body":"JITM for Plugins screen is only displayed after a plugin is activated.\r\n\r\nJITM for Add New screen is only displayed for posts and pages.","created_at":"2015-12-11T21:25:37Z","updated_at":"2015-12-11T21:56:54Z","closed_at":null,"merged_at":null,"merge_commit_sha":"7e72f1fa298da290bb2e4eae35b0fe0e3c442392","assignee":{"login":"eliorivero","id":1041600,"avatar_url":"https://avatars.githubusercontent.com/u/1041600?v=3","gravatar_id":"","url":"https://api.github.com/users/eliorivero","html_url":"https://github.com/eliorivero","followers_url":"https://api.github.com/users/eliorivero/followers","following_url":"https://api.github.com/users/eliorivero/following{/other_user}","gists_url":"https://api.github.com/users/eliorivero/gists{/gist_id}","starred_url":"https://api.github.com/users/eliorivero/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eliorivero/subscriptions","organizations_url":"https://api.github.com/users/eliorivero/orgs","repos_url":"https://api.github.com/users/eliorivero/repos","events_url":"https://api.github.com/users/eliorivero/events{/privacy}","received_events_url":"https://api.github.com/users/eliorivero/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/Automattic/jetpack/milestones/33","html_url":"https://github.com/Automattic/jetpack/milestones/3.8.2","labels_url":"https://api.github.com/repos/Automattic/jetpack/milestones/33/labels","id":1415338,"number":33,"title":"3.8.2","description":null,"creator":{"login":"samhotchkiss","id":574752,"avatar_url":"https://avatars.githubusercontent.com/u/574752?v=3","gravatar_id":"","url":"https://api.github.com/users/samhotchkiss","html_url":"https://github.com/samhotchkiss","followers_url":"https://api.github.com/users/samhotchkiss/followers","following_url":"https://api.github.com/users/samhotchkiss/following{/other_user}","gists_url":"https://api.github.com/users/samhotchkiss/gists{/gist_id}","starred_url":"https://api.github.com/users/samhotchkiss/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samhotchkiss/subscriptions","organizations_url":"https://api.github.com/users/samhotchkiss/orgs","repos_url":"https://api.github.com/users/samhotchkiss/repos","events_url":"https://api.github.com/users/samhotchkiss/events{/privacy}","received_events_url":"https://api.github.com/users/samhotchkiss/received_events","type":"User","site_admin":false},"open_issues":22,"closed_issues":35,"state":"open","created_at":"2015-11-17T07:37:56Z","updated_at":"2015-12-11T21:42:12Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/Automattic/jetpack/pulls/3137/commits","review_comments_url":"https://api.github.com/repos/Automattic/jetpack/pulls/3137/comments","review_comment_url":"https://api.github.com/repos/Automattic/jetpack/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Automattic/jetpack/issues/3137/comments","statuses_url":"https://api.github.com/repos/Automattic/jetpack/statuses/bfda3b3585d643bc46f952d2091e74451b5ce76e","head":{"label":"Automattic:jitm_plugin_auto_update","ref":"jitm_plugin_auto_update","sha":"bfda3b3585d643bc46f952d2091e74451b5ce76e","user":{"login":"Automattic","id":887802,"avatar_url":"https://avatars.githubusercontent.com/u/887802?v=3","gravatar_id":"","url":"https://api.github.com/users/Automattic","html_url":"https://github.com/Automattic","followers_url":"https://api.github.com/users/Automattic/followers","following_url":"https://api.github.com/users/Automattic/following{/other_user}","gists_url":"https://api.github.com/users/Automattic/gists{/gist_id}","starred_url":"https://api.github.com/users/Automattic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Automattic/subscriptions","organizations_url":"https://api.github.com/users/Automattic/orgs","repos_url":"https://api.github.com/users/Automattic/repos","events_url":"https://api.github.com/users/Automattic/events{/privacy}","received_events_url":"https://api.github.com/users/Automattic/received_events","type":"Organization","site_admin":false},"repo":{"id":15231212,"name":"jetpack","full_name":"Automattic/jetpack","owner":{"login":"Automattic","id":887802,"avatar_url":"https://avatars.githubusercontent.com/u/887802?v=3","gravatar_id":"","url":"https://api.github.com/users/Automattic","html_url":"https://github.com/Automattic","followers_url":"https://api.github.com/users/Automattic/followers","following_url":"https://api.github.com/users/Automattic/following{/other_user}","gists_url":"https://api.github.com/users/Automattic/gists{/gist_id}","starred_url":"https://api.github.com/users/Automattic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Automattic/subscriptions","organizations_url":"https://api.github.com/users/Automattic/orgs","repos_url":"https://api.github.com/users/Automattic/repos","events_url":"https://api.github.com/users/Automattic/events{/privacy}","received_events_url":"https://api.github.com/users/Automattic/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Automattic/jetpack","description":"Your WordPress, Streamlined.","fork":false,"url":"https://api.github.com/repos/Automattic/jetpack","forks_url":"https://api.github.com/repos/Automattic/jetpack/forks","keys_url":"https://api.github.com/repos/Automattic/jetpack/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Automattic/jetpack/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Automattic/jetpack/teams","hooks_url":"https://api.github.com/repos/Automattic/jetpack/hooks","issue_events_url":"https://api.github.com/repos/Automattic/jetpack/issues/events{/number}","events_url":"https://api.github.com/repos/Automattic/jetpack/events","assignees_url":"https://api.github.com/repos/Automattic/jetpack/assignees{/user}","branches_url":"https://api.github.com/repos/Automattic/jetpack/branches{/branch}","tags_url":"https://api.github.com/repos/Automattic/jetpack/tags","blobs_url":"https://api.github.com/repos/Automattic/jetpack/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Automattic/jetpack/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Automattic/jetpack/git/refs{/sha}","trees_url":"https://api.github.com/repos/Automattic/jetpack/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Automattic/jetpack/statuses/{sha}","languages_url":"https://api.github.com/repos/Automattic/jetpack/languages","stargazers_url":"https://api.github.com/repos/Automattic/jetpack/stargazers","contributors_url":"https://api.github.com/repos/Automattic/jetpack/contributors","subscribers_url":"https://api.github.com/repos/Automattic/jetpack/subscribers","subscription_url":"https://api.github.com/repos/Automattic/jetpack/subscription","commits_url":"https://api.github.com/repos/Automattic/jetpack/commits{/sha}","git_commits_url":"https://api.github.com/repos/Automattic/jetpack/git/commits{/sha}","comments_url":"https://api.github.com/repos/Automattic/jetpack/comments{/number}","issue_comment_url":"https://api.github.com/repos/Automattic/jetpack/issues/comments{/number}","contents_url":"https://api.github.com/repos/Automattic/jetpack/contents/{+path}","compare_url":"https://api.github.com/repos/Automattic/jetpack/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Automattic/jetpack/merges","archive_url":"https://api.github.com/repos/Automattic/jetpack/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Automattic/jetpack/downloads","issues_url":"https://api.github.com/repos/Automattic/jetpack/issues{/number}","pulls_url":"https://api.github.com/repos/Automattic/jetpack/pulls{/number}","milestones_url":"https://api.github.com/repos/Automattic/jetpack/milestones{/number}","notifications_url":"https://api.github.com/repos/Automattic/jetpack/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Automattic/jetpack/labels{/name}","releases_url":"https://api.github.com/repos/Automattic/jetpack/releases{/id}","created_at":"2013-12-16T16:43:01Z","updated_at":"2015-12-10T20:21:34Z","pushed_at":"2015-12-11T21:56:39Z","git_url":"git://github.com/Automattic/jetpack.git","ssh_url":"git@github.com:Automattic/jetpack.git","clone_url":"https://github.com/Automattic/jetpack.git","svn_url":"https://github.com/Automattic/jetpack","homepage":"http://jetpack.me","size":72342,"stargazers_count":469,"watchers_count":469,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":292,"mirror_url":null,"open_issues_count":628,"forks":292,"open_issues":628,"watchers":469,"default_branch":"master"}},"base":{"label":"Automattic:master","ref":"master","sha":"819f2d6d3a3c8094561c8a1b8a036db7520e0fdb","user":{"login":"Automattic","id":887802,"avatar_url":"https://avatars.githubusercontent.com/u/887802?v=3","gravatar_id":"","url":"https://api.github.com/users/Automattic","html_url":"https://github.com/Automattic","followers_url":"https://api.github.com/users/Automattic/followers","following_url":"https://api.github.com/users/Automattic/following{/other_user}","gists_url":"https://api.github.com/users/Automattic/gists{/gist_id}","starred_url":"https://api.github.com/users/Automattic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Automattic/subscriptions","organizations_url":"https://api.github.com/users/Automattic/orgs","repos_url":"https://api.github.com/users/Automattic/repos","events_url":"https://api.github.com/users/Automattic/events{/privacy}","received_events_url":"https://api.github.com/users/Automattic/received_events","type":"Organization","site_admin":false},"repo":{"id":15231212,"name":"jetpack","full_name":"Automattic/jetpack","owner":{"login":"Automattic","id":887802,"avatar_url":"https://avatars.githubusercontent.com/u/887802?v=3","gravatar_id":"","url":"https://api.github.com/users/Automattic","html_url":"https://github.com/Automattic","followers_url":"https://api.github.com/users/Automattic/followers","following_url":"https://api.github.com/users/Automattic/following{/other_user}","gists_url":"https://api.github.com/users/Automattic/gists{/gist_id}","starred_url":"https://api.github.com/users/Automattic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Automattic/subscriptions","organizations_url":"https://api.github.com/users/Automattic/orgs","repos_url":"https://api.github.com/users/Automattic/repos","events_url":"https://api.github.com/users/Automattic/events{/privacy}","received_events_url":"https://api.github.com/users/Automattic/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Automattic/jetpack","description":"Your WordPress, Streamlined.","fork":false,"url":"https://api.github.com/repos/Automattic/jetpack","forks_url":"https://api.github.com/repos/Automattic/jetpack/forks","keys_url":"https://api.github.com/repos/Automattic/jetpack/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Automattic/jetpack/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Automattic/jetpack/teams","hooks_url":"https://api.github.com/repos/Automattic/jetpack/hooks","issue_events_url":"https://api.github.com/repos/Automattic/jetpack/issues/events{/number}","events_url":"https://api.github.com/repos/Automattic/jetpack/events","assignees_url":"https://api.github.com/repos/Automattic/jetpack/assignees{/user}","branches_url":"https://api.github.com/repos/Automattic/jetpack/branches{/branch}","tags_url":"https://api.github.com/repos/Automattic/jetpack/tags","blobs_url":"https://api.github.com/repos/Automattic/jetpack/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Automattic/jetpack/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Automattic/jetpack/git/refs{/sha}","trees_url":"https://api.github.com/repos/Automattic/jetpack/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Automattic/jetpack/statuses/{sha}","languages_url":"https://api.github.com/repos/Automattic/jetpack/languages","stargazers_url":"https://api.github.com/repos/Automattic/jetpack/stargazers","contributors_url":"https://api.github.com/repos/Automattic/jetpack/contributors","subscribers_url":"https://api.github.com/repos/Automattic/jetpack/subscribers","subscription_url":"https://api.github.com/repos/Automattic/jetpack/subscription","commits_url":"https://api.github.com/repos/Automattic/jetpack/commits{/sha}","git_commits_url":"https://api.github.com/repos/Automattic/jetpack/git/commits{/sha}","comments_url":"https://api.github.com/repos/Automattic/jetpack/comments{/number}","issue_comment_url":"https://api.github.com/repos/Automattic/jetpack/issues/comments{/number}","contents_url":"https://api.github.com/repos/Automattic/jetpack/contents/{+path}","compare_url":"https://api.github.com/repos/Automattic/jetpack/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Automattic/jetpack/merges","archive_url":"https://api.github.com/repos/Automattic/jetpack/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Automattic/jetpack/downloads","issues_url":"https://api.github.com/repos/Automattic/jetpack/issues{/number}","pulls_url":"https://api.github.com/repos/Automattic/jetpack/pulls{/number}","milestones_url":"https://api.github.com/repos/Automattic/jetpack/milestones{/number}","notifications_url":"https://api.github.com/repos/Automattic/jetpack/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Automattic/jetpack/labels{/name}","releases_url":"https://api.github.com/repos/Automattic/jetpack/releases{/id}","created_at":"2013-12-16T16:43:01Z","updated_at":"2015-12-10T20:21:34Z","pushed_at":"2015-12-11T21:56:39Z","git_url":"git://github.com/Automattic/jetpack.git","ssh_url":"git@github.com:Automattic/jetpack.git","clone_url":"https://github.com/Automattic/jetpack.git","svn_url":"https://github.com/Automattic/jetpack","homepage":"http://jetpack.me","size":72342,"stargazers_count":469,"watchers_count":469,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":292,"mirror_url":null,"open_issues_count":628,"forks":292,"open_issues":628,"watchers":469,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Automattic/jetpack/pulls/3137"},"html":{"href":"https://github.com/Automattic/jetpack/pull/3137"},"issue":{"href":"https://api.github.com/repos/Automattic/jetpack/issues/3137"},"comments":{"href":"https://api.github.com/repos/Automattic/jetpack/issues/3137/comments"},"review_comments":{"href":"https://api.github.com/repos/Automattic/jetpack/pulls/3137/comments"},"review_comment":{"href":"https://api.github.com/repos/Automattic/jetpack/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Automattic/jetpack/pulls/3137/commits"},"statuses":{"href":"https://api.github.com/repos/Automattic/jetpack/statuses/bfda3b3585d643bc46f952d2091e74451b5ce76e"}}}}