{"action":"created","comment":{"url":"https://api.github.com/repos/Automattic/jetpack/pulls/comments/31461276","id":31461276,"diff_hunk":"@@ -5649,7 +5716,84 @@ public static function jumpstart_has_updated_module_option( $option_name = '' )\n \t\t\t'site_logo',\n \t\t);\n \n-\t\tif ( in_array( $option_name, $option_names ) ) {\n+\t\t// Whitelist some Jetpack options\n+\t\t// @todo remove the commented out options\n+\t\t$whitelist_terms = array(\n+\t\t\t'id',                           // (int)    The Client ID/WP.com Blog ID of this site.\n+//\t\t\t'publicize_connections',        // (array)  An array of Publicize connections from WordPress.com\n+\t\t\t'master_user',                  // (int)    The local User ID of the user who connected this site to jetpack.wordpress.com.\n+\t\t\t'version',                      // (string) Used during upgrade procedure to auto-activate new modules. version:time\n+//\t\t\t'old_version',                  // (string) Used to determine which modules are the most recently added. previous_version:time\n+//\t\t\t'fallback_no_verify_ssl_certs', // (int)    Flag for determining if this host must skip SSL Certificate verification due to misconfigured SSL.\n+//\t\t\t'time_diff',                    // (int)    Offset between Jetpack server's clocks and this server's clocks. Jetpack Server Time = time() + (int) Jetpack_Options::get_option( 'time_diff' )\n+//\t\t\t'public',                       // (int|bool) If we think this site is public or not (1, 0), false if we haven't yet tried to figure it out.\n+//\t\t\t'videopress',                   // (array)  VideoPress options array.\n+//\t\t\t'is_network_site',              // (int|bool) If we think this site is a network or a single blog (1, 0), false if we haven't yet tried to figue it out.\n+//\t\t\t'social_links',                 // (array)  The specified links for each social networking site.\n+//\t\t\t'identity_crisis_whitelist',    // (array)  An array of options, each having an array of the values whitelisted for it.\n+//\t\t\t'gplus_authors',                // (array)  The Google+ authorship information for connected users.\n+//\t\t\t'last_heartbeat',               // (int)    The timestamp of the last heartbeat that fired.\n+//\t\t\t'last_security_report',         // (int)    The timestamp of the last security report that was run.\n+//\t\t\t'sync_bulk_reindexing',         // (bool)   If a bulk reindex is currently underway.\n+\t\t\t'jumpstart',                    // (string) A flag for whether or not to show the Jump Start.  Accepts: new_connection, jumpstart_activated, jetpack_action_taken, jumpstart_dismissed.\n+\n+\t\t\t// non_compact\n+\t\t\t'activated',\n+//\t\t\t'available_modules',\n+//\t\t\t'do_activate',\n+//\t\t\t'log',\n+//\t\t\t'publicize',\n+//\t\t\t'slideshow_background_color',\n+//\t\t\t'widget_twitter',\n+//\t\t\t'wpcc_options',\n+//\t\t\t'relatedposts',\n+//\t\t\t'file_data',\n+//\t\t\t'security_report',\n+//\t\t\t'autoupdate_plugins',          // (array)  An array of plugin ids ( eg. jetpack/jetpack ) that should be autoupdated\n+//\t\t\t'autoupdate_themes',           // (array)  An array of theme ids ( eg. twentyfourteen ) that should be autoupdated\n+//\t\t\t'autoupdate_core',             // (bool)   Whether or not to autoupdate core\n+//\t\t\t'json_api_full_management',    // (bool)   Allow full management (eg. Activate, Upgrade plugins) of the site via the JSON API.\n+//\t\t\t'sync_non_public_post_stati',  // (bool)   Allow synchronisation of posts and pages with non-public status.\n+//\t\t\t'site_icon_url',               // (string) url to the full site icon\n+//\t\t\t'site_icon_id',                // (int)    Attachment id of the site icon file\n+//\t\t\t'dismissed_manage_banner',     // (bool) Dismiss Jetpack manage banner allows the user to dismiss the banner permanently\n+//\t\t\t'updates',                     // (array) information about available updates to plugins, theme, WordPress core, and if site is under version control\n+\t\t);\n+\n+\t\t// Remove the whitelisted Jetpack options\n+\t\tforeach ( $whitelist_terms as $whitelist_term ) {\n+\t\t\tif ( ( $key = array_search( $whitelist_term, $all_jp_options ) ) !== false ) {","path":"class.jetpack.php","position":151,"original_position":151,"commit_id":"f06a9142622caebbf03d62511b23e84402cf8d54","original_commit_id":"f06a9142622caebbf03d62511b23e84402cf8d54","user":{"login":"roccotripaldi","id":2694219,"avatar_url":"https://avatars.githubusercontent.com/u/2694219?v=3","gravatar_id":"","url":"https://api.github.com/users/roccotripaldi","html_url":"https://github.com/roccotripaldi","followers_url":"https://api.github.com/users/roccotripaldi/followers","following_url":"https://api.github.com/users/roccotripaldi/following{/other_user}","gists_url":"https://api.github.com/users/roccotripaldi/gists{/gist_id}","starred_url":"https://api.github.com/users/roccotripaldi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/roccotripaldi/subscriptions","organizations_url":"https://api.github.com/users/roccotripaldi/orgs","repos_url":"https://api.github.com/users/roccotripaldi/repos","events_url":"https://api.github.com/users/roccotripaldi/events{/privacy}","received_events_url":"https://api.github.com/users/roccotripaldi/received_events","type":"User","site_admin":false},"body":"Yoda","created_at":"2015-06-01T19:35:02Z","updated_at":"2015-06-01T19:35:02Z","html_url":"https://github.com/Automattic/jetpack/pull/2168#discussion_r31461276","pull_request_url":"https://api.github.com/repos/Automattic/jetpack/pulls/2168","_links":{"self":{"href":"https://api.github.com/repos/Automattic/jetpack/pulls/comments/31461276"},"html":{"href":"https://github.com/Automattic/jetpack/pull/2168#discussion_r31461276"},"pull_request":{"href":"https://api.github.com/repos/Automattic/jetpack/pulls/2168"}}},"pull_request":{"url":"https://api.github.com/repos/Automattic/jetpack/pulls/2168","id":36145369,"html_url":"https://github.com/Automattic/jetpack/pull/2168","diff_url":"https://github.com/Automattic/jetpack/pull/2168.diff","patch_url":"https://github.com/Automattic/jetpack/pull/2168.patch","issue_url":"https://api.github.com/repos/Automattic/jetpack/issues/2168","number":2168,"state":"open","locked":false,"title":"Enhance/jetpack cli","user":{"login":"dereksmart","id":7129409,"avatar_url":"https://avatars.githubusercontent.com/u/7129409?v=3","gravatar_id":"","url":"https://api.github.com/users/dereksmart","html_url":"https://github.com/dereksmart","followers_url":"https://api.github.com/users/dereksmart/followers","following_url":"https://api.github.com/users/dereksmart/following{/other_user}","gists_url":"https://api.github.com/users/dereksmart/gists{/gist_id}","starred_url":"https://api.github.com/users/dereksmart/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dereksmart/subscriptions","organizations_url":"https://api.github.com/users/dereksmart/orgs","repos_url":"https://api.github.com/users/dereksmart/repos","events_url":"https://api.github.com/users/dereksmart/events{/privacy}","received_events_url":"https://api.github.com/users/dereksmart/received_events","type":"User","site_admin":false},"body":"Some serious Jetpack CLI love.  \r\n\r\nFixed/enhanced: `module`\r\nUseage: `wp jetpack module <action>`\r\n`list`: View all available modules, and their status.\r\n`activate all`: Bulk activate all modules\r\n`deactivate all`: Bulk deactivate all modules\r\n`activate  <module_slug>`: Activate a module.\r\n`deactivate <module_slug>`: Deactivate a module.\r\n`toggle <module_slug>`: Toggle a module on or off.\r\n\r\nFixed: `disconnect`\r\nUseage: `wp jetpack disconnect <action>`\r\n`blog`: Disconnect the entire blog.\r\n`user <user_identifier>`: Disconnect a specific user from WordPress.com.\r\n\r\nNew: `status full`\r\nUseage: `wp jetpack status full`\r\n- Displays all data that we get from the heartbeat.  some options will show red/yellow if there's a problem with the setup (i.e. out of date wp version, php version, etc...)\r\n- New method `jetpack_check_heartbeat_data()` written to handle that organization. \r\n\r\nNew: `reset`\r\nUseage: `wp jetpack reset <action>`\r\n`modules`: Resets modules to default state ( get_default_modules() )\r\n`options`: Resets all Jetpack options except:\r\n- All private options (Blog token, user token, etc...)\r\n- id (The Client ID/WP.com Blog ID of this site)\r\n- master_user\r\n- version\r\n- activated\r\n\r\nNew method introduced `get_jetapck_options_for_reset()` to handle which options to reset.\r\n\r\n\r\nNew: `protect`\r\n- Whitelist an IP address\r\nUseage: `wp jetpack protect whitelist <ip address>`\r\n`whitelist list` : List your whitelist \r\n`whitelist clear` : clear your whitelist\r\n\r\nNew: `options`\r\n- List, Get, Update (some), Delete (some) Jetpack_Options\r\n\r\n(some) == all except those whitelisted in the \"reset\" function\r\n(Also, can't update option arrays, only strings)\r\nUseage:  `wp jetpack options <list|get|delete|update> [<option_name>] [<option_value>]`\r\n\r\nAlso fixes #1175","created_at":"2015-05-25T15:18:35Z","updated_at":"2015-06-01T19:35:03Z","closed_at":null,"merged_at":null,"merge_commit_sha":"617dcfffbb5452ceee8fa67460d3510406ca9a8f","assignee":null,"milestone":{"url":"https://api.github.com/repos/Automattic/jetpack/milestones/16","html_url":"https://github.com/Automattic/jetpack/milestones/3.6","labels_url":"https://api.github.com/repos/Automattic/jetpack/milestones/16/labels","id":955017,"number":16,"title":"3.6","description":"","creator":{"login":"jeherve","id":426388,"avatar_url":"https://avatars.githubusercontent.com/u/426388?v=3","gravatar_id":"","url":"https://api.github.com/users/jeherve","html_url":"https://github.com/jeherve","followers_url":"https://api.github.com/users/jeherve/followers","following_url":"https://api.github.com/users/jeherve/following{/other_user}","gists_url":"https://api.github.com/users/jeherve/gists{/gist_id}","starred_url":"https://api.github.com/users/jeherve/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeherve/subscriptions","organizations_url":"https://api.github.com/users/jeherve/orgs","repos_url":"https://api.github.com/users/jeherve/repos","events_url":"https://api.github.com/users/jeherve/events{/privacy}","received_events_url":"https://api.github.com/users/jeherve/received_events","type":"User","site_admin":false},"open_issues":187,"closed_issues":87,"state":"open","created_at":"2015-01-28T15:04:56Z","updated_at":"2015-06-01T17:07:16Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/Automattic/jetpack/pulls/2168/commits","review_comments_url":"https://api.github.com/repos/Automattic/jetpack/pulls/2168/comments","review_comment_url":"https://api.github.com/repos/Automattic/jetpack/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Automattic/jetpack/issues/2168/comments","statuses_url":"https://api.github.com/repos/Automattic/jetpack/statuses/f06a9142622caebbf03d62511b23e84402cf8d54","head":{"label":"Automattic:enhance/jetpack-cli","ref":"enhance/jetpack-cli","sha":"f06a9142622caebbf03d62511b23e84402cf8d54","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-06-01T05:06:08Z","pushed_at":"2015-06-01T18:09:27Z","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":297834,"stargazers_count":343,"watchers_count":343,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":240,"mirror_url":null,"open_issues_count":598,"forks":240,"open_issues":598,"watchers":343,"default_branch":"master"}},"base":{"label":"Automattic:master","ref":"master","sha":"202d1b80e9386aa6ed2dceb6ab9a4f362413e695","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-06-01T05:06:08Z","pushed_at":"2015-06-01T18:09:27Z","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":297834,"stargazers_count":343,"watchers_count":343,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":240,"mirror_url":null,"open_issues_count":598,"forks":240,"open_issues":598,"watchers":343,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Automattic/jetpack/pulls/2168"},"html":{"href":"https://github.com/Automattic/jetpack/pull/2168"},"issue":{"href":"https://api.github.com/repos/Automattic/jetpack/issues/2168"},"comments":{"href":"https://api.github.com/repos/Automattic/jetpack/issues/2168/comments"},"review_comments":{"href":"https://api.github.com/repos/Automattic/jetpack/pulls/2168/comments"},"review_comment":{"href":"https://api.github.com/repos/Automattic/jetpack/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Automattic/jetpack/pulls/2168/commits"},"statuses":{"href":"https://api.github.com/repos/Automattic/jetpack/statuses/f06a9142622caebbf03d62511b23e84402cf8d54"}}}}