{"action":"created","comment":{"url":"https://api.github.com/repos/Automattic/wp-super-cache/pulls/comments/36944178","id":36944178,"diff_hunk":"@@ -0,0 +1,472 @@\n+<?php\n+\n+/**\n+* Export & Import WP Super Cache settings.\n+*\n+* This class handles the exporting and importing of WP Super Cache settings. Exports are downloaded\n+* as a JSON file with properties that mirror the WP Super Cache configuration file. Imports are handled\n+* by uploading an exported JSON file and overwriting the WP Super Cache configuration file with the\n+* imported parameters. A backup of the original configuration file is kept.\n+*\n+* @package  WP Super Cache\n+* @since 1.4.4\n+*/\n+\n+class WP_Super_Cache_Export {\n+\n+  const TITLE = 'WP_Super_Cache_Export.json';","path":"wp-cache-export.php","position":17,"original_position":17,"commit_id":"bc842d1916f79c6a267277447d09f361fb0b1bcb","original_commit_id":"bc842d1916f79c6a267277447d09f361fb0b1bcb","user":{"login":"mdawaffe","id":125994,"avatar_url":"https://avatars.githubusercontent.com/u/125994?v=3","gravatar_id":"","url":"https://api.github.com/users/mdawaffe","html_url":"https://github.com/mdawaffe","followers_url":"https://api.github.com/users/mdawaffe/followers","following_url":"https://api.github.com/users/mdawaffe/following{/other_user}","gists_url":"https://api.github.com/users/mdawaffe/gists{/gist_id}","starred_url":"https://api.github.com/users/mdawaffe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mdawaffe/subscriptions","organizations_url":"https://api.github.com/users/mdawaffe/orgs","repos_url":"https://api.github.com/users/mdawaffe/repos","events_url":"https://api.github.com/users/mdawaffe/events{/privacy}","received_events_url":"https://api.github.com/users/mdawaffe/received_events","type":"User","site_admin":false},"body":"I think of files as having names not titles. Are you the opposite?","created_at":"2015-08-13T06:29:26Z","updated_at":"2015-08-13T06:29:26Z","html_url":"https://github.com/Automattic/wp-super-cache/pull/56#discussion_r36944178","pull_request_url":"https://api.github.com/repos/Automattic/wp-super-cache/pulls/56","_links":{"self":{"href":"https://api.github.com/repos/Automattic/wp-super-cache/pulls/comments/36944178"},"html":{"href":"https://github.com/Automattic/wp-super-cache/pull/56#discussion_r36944178"},"pull_request":{"href":"https://api.github.com/repos/Automattic/wp-super-cache/pulls/56"}}},"pull_request":{"url":"https://api.github.com/repos/Automattic/wp-super-cache/pulls/56","id":41303615,"html_url":"https://github.com/Automattic/wp-super-cache/pull/56","diff_url":"https://github.com/Automattic/wp-super-cache/pull/56.diff","patch_url":"https://github.com/Automattic/wp-super-cache/pull/56.patch","issue_url":"https://api.github.com/repos/Automattic/wp-super-cache/issues/56","number":56,"state":"open","locked":false,"title":"Import/Export settings","user":{"login":"daneodekirk","id":881930,"avatar_url":"https://avatars.githubusercontent.com/u/881930?v=3","gravatar_id":"","url":"https://api.github.com/users/daneodekirk","html_url":"https://github.com/daneodekirk","followers_url":"https://api.github.com/users/daneodekirk/followers","following_url":"https://api.github.com/users/daneodekirk/following{/other_user}","gists_url":"https://api.github.com/users/daneodekirk/gists{/gist_id}","starred_url":"https://api.github.com/users/daneodekirk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daneodekirk/subscriptions","organizations_url":"https://api.github.com/users/daneodekirk/orgs","repos_url":"https://api.github.com/users/daneodekirk/repos","events_url":"https://api.github.com/users/daneodekirk/events{/privacy}","received_events_url":"https://api.github.com/users/daneodekirk/received_events","type":"User","site_admin":false},"body":"Adds an import/export feature as mentioned in #4. Provides the functionality for importing and exporting the plugin's settings as well as a class for validating/sanitizing the settings. ","created_at":"2015-07-31T03:07:17Z","updated_at":"2015-08-13T06:29:26Z","closed_at":null,"merged_at":null,"merge_commit_sha":"980ab7b254e84626c8f8531dc4de6df5e61c42e7","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Automattic/wp-super-cache/pulls/56/commits","review_comments_url":"https://api.github.com/repos/Automattic/wp-super-cache/pulls/56/comments","review_comment_url":"https://api.github.com/repos/Automattic/wp-super-cache/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Automattic/wp-super-cache/issues/56/comments","statuses_url":"https://api.github.com/repos/Automattic/wp-super-cache/statuses/bc842d1916f79c6a267277447d09f361fb0b1bcb","head":{"label":"daneodekirk:master","ref":"master","sha":"bc842d1916f79c6a267277447d09f361fb0b1bcb","user":{"login":"daneodekirk","id":881930,"avatar_url":"https://avatars.githubusercontent.com/u/881930?v=3","gravatar_id":"","url":"https://api.github.com/users/daneodekirk","html_url":"https://github.com/daneodekirk","followers_url":"https://api.github.com/users/daneodekirk/followers","following_url":"https://api.github.com/users/daneodekirk/following{/other_user}","gists_url":"https://api.github.com/users/daneodekirk/gists{/gist_id}","starred_url":"https://api.github.com/users/daneodekirk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daneodekirk/subscriptions","organizations_url":"https://api.github.com/users/daneodekirk/orgs","repos_url":"https://api.github.com/users/daneodekirk/repos","events_url":"https://api.github.com/users/daneodekirk/events{/privacy}","received_events_url":"https://api.github.com/users/daneodekirk/received_events","type":"User","site_admin":false},"repo":{"id":38796620,"name":"wp-super-cache","full_name":"daneodekirk/wp-super-cache","owner":{"login":"daneodekirk","id":881930,"avatar_url":"https://avatars.githubusercontent.com/u/881930?v=3","gravatar_id":"","url":"https://api.github.com/users/daneodekirk","html_url":"https://github.com/daneodekirk","followers_url":"https://api.github.com/users/daneodekirk/followers","following_url":"https://api.github.com/users/daneodekirk/following{/other_user}","gists_url":"https://api.github.com/users/daneodekirk/gists{/gist_id}","starred_url":"https://api.github.com/users/daneodekirk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daneodekirk/subscriptions","organizations_url":"https://api.github.com/users/daneodekirk/orgs","repos_url":"https://api.github.com/users/daneodekirk/repos","events_url":"https://api.github.com/users/daneodekirk/events{/privacy}","received_events_url":"https://api.github.com/users/daneodekirk/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/daneodekirk/wp-super-cache","description":"http://wordpress.org/plugins/wp-super-cache/","fork":true,"url":"https://api.github.com/repos/daneodekirk/wp-super-cache","forks_url":"https://api.github.com/repos/daneodekirk/wp-super-cache/forks","keys_url":"https://api.github.com/repos/daneodekirk/wp-super-cache/keys{/key_id}","collaborators_url":"https://api.github.com/repos/daneodekirk/wp-super-cache/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/daneodekirk/wp-super-cache/teams","hooks_url":"https://api.github.com/repos/daneodekirk/wp-super-cache/hooks","issue_events_url":"https://api.github.com/repos/daneodekirk/wp-super-cache/issues/events{/number}","events_url":"https://api.github.com/repos/daneodekirk/wp-super-cache/events","assignees_url":"https://api.github.com/repos/daneodekirk/wp-super-cache/assignees{/user}","branches_url":"https://api.github.com/repos/daneodekirk/wp-super-cache/branches{/branch}","tags_url":"https://api.github.com/repos/daneodekirk/wp-super-cache/tags","blobs_url":"https://api.github.com/repos/daneodekirk/wp-super-cache/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/daneodekirk/wp-super-cache/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/daneodekirk/wp-super-cache/git/refs{/sha}","trees_url":"https://api.github.com/repos/daneodekirk/wp-super-cache/git/trees{/sha}","statuses_url":"https://api.github.com/repos/daneodekirk/wp-super-cache/statuses/{sha}","languages_url":"https://api.github.com/repos/daneodekirk/wp-super-cache/languages","stargazers_url":"https://api.github.com/repos/daneodekirk/wp-super-cache/stargazers","contributors_url":"https://api.github.com/repos/daneodekirk/wp-super-cache/contributors","subscribers_url":"https://api.github.com/repos/daneodekirk/wp-super-cache/subscribers","subscription_url":"https://api.github.com/repos/daneodekirk/wp-super-cache/subscription","commits_url":"https://api.github.com/repos/daneodekirk/wp-super-cache/commits{/sha}","git_commits_url":"https://api.github.com/repos/daneodekirk/wp-super-cache/git/commits{/sha}","comments_url":"https://api.github.com/repos/daneodekirk/wp-super-cache/comments{/number}","issue_comment_url":"https://api.github.com/repos/daneodekirk/wp-super-cache/issues/comments{/number}","contents_url":"https://api.github.com/repos/daneodekirk/wp-super-cache/contents/{+path}","compare_url":"https://api.github.com/repos/daneodekirk/wp-super-cache/compare/{base}...{head}","merges_url":"https://api.github.com/repos/daneodekirk/wp-super-cache/merges","archive_url":"https://api.github.com/repos/daneodekirk/wp-super-cache/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/daneodekirk/wp-super-cache/downloads","issues_url":"https://api.github.com/repos/daneodekirk/wp-super-cache/issues{/number}","pulls_url":"https://api.github.com/repos/daneodekirk/wp-super-cache/pulls{/number}","milestones_url":"https://api.github.com/repos/daneodekirk/wp-super-cache/milestones{/number}","notifications_url":"https://api.github.com/repos/daneodekirk/wp-super-cache/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/daneodekirk/wp-super-cache/labels{/name}","releases_url":"https://api.github.com/repos/daneodekirk/wp-super-cache/releases{/id}","created_at":"2015-07-09T04:14:37Z","updated_at":"2015-07-09T04:14:38Z","pushed_at":"2015-07-31T02:55:57Z","git_url":"git://github.com/daneodekirk/wp-super-cache.git","ssh_url":"git@github.com:daneodekirk/wp-super-cache.git","clone_url":"https://github.com/daneodekirk/wp-super-cache.git","svn_url":"https://github.com/daneodekirk/wp-super-cache","homepage":null,"size":1954,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"Automattic:master","ref":"master","sha":"e3791442ed9c9f16564f2607d0565f2d28eb302f","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":21128555,"name":"wp-super-cache","full_name":"Automattic/wp-super-cache","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/wp-super-cache","description":"http://wordpress.org/plugins/wp-super-cache/","fork":false,"url":"https://api.github.com/repos/Automattic/wp-super-cache","forks_url":"https://api.github.com/repos/Automattic/wp-super-cache/forks","keys_url":"https://api.github.com/repos/Automattic/wp-super-cache/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Automattic/wp-super-cache/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Automattic/wp-super-cache/teams","hooks_url":"https://api.github.com/repos/Automattic/wp-super-cache/hooks","issue_events_url":"https://api.github.com/repos/Automattic/wp-super-cache/issues/events{/number}","events_url":"https://api.github.com/repos/Automattic/wp-super-cache/events","assignees_url":"https://api.github.com/repos/Automattic/wp-super-cache/assignees{/user}","branches_url":"https://api.github.com/repos/Automattic/wp-super-cache/branches{/branch}","tags_url":"https://api.github.com/repos/Automattic/wp-super-cache/tags","blobs_url":"https://api.github.com/repos/Automattic/wp-super-cache/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Automattic/wp-super-cache/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Automattic/wp-super-cache/git/refs{/sha}","trees_url":"https://api.github.com/repos/Automattic/wp-super-cache/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Automattic/wp-super-cache/statuses/{sha}","languages_url":"https://api.github.com/repos/Automattic/wp-super-cache/languages","stargazers_url":"https://api.github.com/repos/Automattic/wp-super-cache/stargazers","contributors_url":"https://api.github.com/repos/Automattic/wp-super-cache/contributors","subscribers_url":"https://api.github.com/repos/Automattic/wp-super-cache/subscribers","subscription_url":"https://api.github.com/repos/Automattic/wp-super-cache/subscription","commits_url":"https://api.github.com/repos/Automattic/wp-super-cache/commits{/sha}","git_commits_url":"https://api.github.com/repos/Automattic/wp-super-cache/git/commits{/sha}","comments_url":"https://api.github.com/repos/Automattic/wp-super-cache/comments{/number}","issue_comment_url":"https://api.github.com/repos/Automattic/wp-super-cache/issues/comments{/number}","contents_url":"https://api.github.com/repos/Automattic/wp-super-cache/contents/{+path}","compare_url":"https://api.github.com/repos/Automattic/wp-super-cache/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Automattic/wp-super-cache/merges","archive_url":"https://api.github.com/repos/Automattic/wp-super-cache/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Automattic/wp-super-cache/downloads","issues_url":"https://api.github.com/repos/Automattic/wp-super-cache/issues{/number}","pulls_url":"https://api.github.com/repos/Automattic/wp-super-cache/pulls{/number}","milestones_url":"https://api.github.com/repos/Automattic/wp-super-cache/milestones{/number}","notifications_url":"https://api.github.com/repos/Automattic/wp-super-cache/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Automattic/wp-super-cache/labels{/name}","releases_url":"https://api.github.com/repos/Automattic/wp-super-cache/releases{/id}","created_at":"2014-06-23T14:08:58Z","updated_at":"2015-08-10T20:53:09Z","pushed_at":"2015-08-13T02:21:12Z","git_url":"git://github.com/Automattic/wp-super-cache.git","ssh_url":"git@github.com:Automattic/wp-super-cache.git","clone_url":"https://github.com/Automattic/wp-super-cache.git","svn_url":"https://github.com/Automattic/wp-super-cache","homepage":null,"size":3290,"stargazers_count":42,"watchers_count":42,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":19,"mirror_url":null,"open_issues_count":36,"forks":19,"open_issues":36,"watchers":42,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Automattic/wp-super-cache/pulls/56"},"html":{"href":"https://github.com/Automattic/wp-super-cache/pull/56"},"issue":{"href":"https://api.github.com/repos/Automattic/wp-super-cache/issues/56"},"comments":{"href":"https://api.github.com/repos/Automattic/wp-super-cache/issues/56/comments"},"review_comments":{"href":"https://api.github.com/repos/Automattic/wp-super-cache/pulls/56/comments"},"review_comment":{"href":"https://api.github.com/repos/Automattic/wp-super-cache/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Automattic/wp-super-cache/pulls/56/commits"},"statuses":{"href":"https://api.github.com/repos/Automattic/wp-super-cache/statuses/bc842d1916f79c6a267277447d09f361fb0b1bcb"}}}}