{"action":"created","comment":{"url":"https://api.github.com/repos/lukad03/angeladuckworth/pulls/comments/49811743","id":49811743,"diff_hunk":"@@ -0,0 +1,228 @@\n+(function($) {\n+\n+\tif (typeof _wpcf7 == 'undefined' || _wpcf7 === null) {\n+\t\t_wpcf7 = {};\n+\t}\n+\n+\t_wpcf7.taggen = {};\n+\n+\t$(function() {\n+\t\t$('form.tag-generator-panel').each(function() {\n+\t\t\t_wpcf7.taggen.update($(this));\n+\t\t});\n+\t});\n+\n+\t$('form.tag-generator-panel').submit(function(event) {\n+\t\treturn false;\n+\t});\n+\n+\t$('form.tag-generator-panel .control-box :input').change(function(event) {\n+\t\tvar form = $(this).closest('form.tag-generator-panel');\n+\t\t_wpcf7.taggen.normalize($(this));\n+\t\t_wpcf7.taggen.update(form);\n+\t});\n+\n+\t$('input.insert-tag').click(function(event) {\n+\t\tvar form = $(this).closest('form.tag-generator-panel');\n+\t\tvar tag = form.find('input.tag').val();\n+\t\t_wpcf7.taggen.insert(tag);\n+\t\ttb_remove(); // close thickbox\n+\t\treturn false;\n+\t});\n+\n+\t_wpcf7.taggen.update = function($form) {\n+\t\tvar id = $form.attr('data-id');\n+\t\tvar name = '';\n+\t\tvar name_fields = $form.find('input[name=\"name\"]');\n+\n+\t\tif (name_fields.length) {\n+\t\t\tname = name_fields.val();\n+\n+\t\t\tif ('' == name) {\n+\t\t\t\tname = id + '-' + Math.floor(Math.random() * 1000);\n+\t\t\t\tname_fields.val(name);\n+\t\t\t}\n+\t\t}\n+\n+\t\tif ($.isFunction(_wpcf7.taggen.update[id])) {\n+\t\t\treturn _wpcf7.taggen.update[id].call(this, $form);\n+\t\t}\n+\n+\t\t$form.find('input.tag').each(function() {\n+\t\t\tvar tag_type = $(this).attr('name');\n+\n+\t\t\tif ($form.find(':input[name=\"tagtype\"]').length) {\n+\t\t\t\ttag_type = $form.find(':input[name=\"tagtype\"]').val();\n+\t\t\t}\n+\n+\t\t\tif ($form.find(':input[name=\"required\"]').is(':checked')) {\n+\t\t\t\ttag_type += '*';\n+\t\t\t}\n+\n+\t\t\tcomponents = _wpcf7.taggen.compose(tag_type, $form);\n+\t\t\t$(this).val(components);\n+\t\t});\n+\n+\t\t$form.find('span.mail-tag').text('[' + name + ']');\n+\n+\t\t$form.find('input.mail-tag').each(function() {\n+\t\t\t$(this).val('[' + name + ']');\n+\t\t});\n+\n+\t};\n+\n+\t_wpcf7.taggen.update.captcha = function($form) {\n+\t\tvar captchac = _wpcf7.taggen.compose('captchac', $form);\n+\t\tvar captchar = _wpcf7.taggen.compose('captchar', $form);\n+\n+\t\t$form.find('input.tag').val(captchac + ' ' + captchar);\n+\t};\n+\n+\t_wpcf7.taggen.compose = function(tagType, $form) {\n+\t\tvar name = $form.find('input[name=\"name\"]').val();\n+\t\tvar scope = $form.find('.scope.' + tagType);\n+\n+\t\tif (! scope.length) {\n+\t\t\tscope = $form;\n+\t\t}\n+\n+\t\tvar options = [];\n+\n+\t\tscope.find('input.option').not(':checkbox,:radio').each(function(i) {\n+\t\t\tvar val = $(this).val();\n+\n+\t\t\tif (! val) {\n+\t\t\t\treturn;\n+\t\t\t}\n+\n+\t\t\tif ($(this).hasClass('filetype')) {\n+\t\t\t\tval = val.split(/[,|\\s]+/).join('|');\n+\t\t\t}\n+\n+\t\t\tif ($(this).hasClass('color')) {\n+\t\t\t\tval = '#' + val;\n+\t\t\t}\n+\n+\t\t\tif ('class' == $(this).attr('name')) {\n+\t\t\t\t$.each(val.split(' '), function(i, n) { options.push('class:' + n) });\n+\t\t\t} else {\n+\t\t\t\toptions.push($(this).attr('name') + ':' + val);\n+\t\t\t}\n+\t\t});\n+\n+\t\tscope.find('input:checkbox.option').each(function(i) {\n+\t\t\tif ($(this).is(':checked')) {\n+\t\t\t\toptions.push($(this).attr('name'));\n+\t\t\t}\n+\t\t});\n+\n+\t\tscope.find('input:radio.option').each(function(i) {\n+\t\t\tif ($(this).is(':checked') && ! $(this).hasClass('default')) {\n+\t\t\t\toptions.push($(this).attr('name') + ':' + $(this).val());\n+\t\t\t}\n+\t\t});\n+\n+\t\toptions = (options.length > 0) ? options.join(' ') : '';\n+\n+\t\tvar value = '';\n+\n+\t\tif (scope.find(':input[name=\"values\"]').val()) {\n+\t\t\t$.each(scope.find(':input[name=\"values\"]').val().split(\"\\n\"), function(i, n) {\n+\t\t\t\tvalue += ' \"' + n.replace(/[\"]/g, '&quot;') + '\"';\n+\t\t\t});\n+\t\t}\n+\n+\t\tvar components = [];\n+\n+\t\t$.each([tagType, name, options, value], function(i, v) {\n+\t\t\tv = $.trim(v);\n+\n+\t\t\tif ('' != v) {\n+\t\t\t\tcomponents.push(v);\n+\t\t\t}\n+\t\t});\n+\n+\t\tcomponents = $.trim(components.join(' '));\n+\t\treturn '[' + components + ']';\n+\t}\n+\n+\t_wpcf7.taggen.normalize = function($input) {","path":"wp-content/plugins/contact-form-7/admin/js/tag-generator.js","position":149,"original_position":149,"commit_id":"6b7397dffcbc652a08bda8a66043a8b90bb94ef1","original_commit_id":"6b7397dffcbc652a08bda8a66043a8b90bb94ef1","user":{"login":"houndci","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci","html_url":"https://github.com/houndci","followers_url":"https://api.github.com/users/houndci/followers","following_url":"https://api.github.com/users/houndci/following{/other_user}","gists_url":"https://api.github.com/users/houndci/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci/subscriptions","organizations_url":"https://api.github.com/users/houndci/orgs","repos_url":"https://api.github.com/users/houndci/repos","events_url":"https://api.github.com/users/houndci/events{/privacy}","received_events_url":"https://api.github.com/users/houndci/received_events","type":"User","site_admin":false},"body":"'_wpcf7' is not defined.","created_at":"2016-01-15T01:34:32Z","updated_at":"2016-01-15T01:34:32Z","html_url":"https://github.com/lukad03/angeladuckworth/pull/71#discussion_r49811743","pull_request_url":"https://api.github.com/repos/lukad03/angeladuckworth/pulls/71","_links":{"self":{"href":"https://api.github.com/repos/lukad03/angeladuckworth/pulls/comments/49811743"},"html":{"href":"https://github.com/lukad03/angeladuckworth/pull/71#discussion_r49811743"},"pull_request":{"href":"https://api.github.com/repos/lukad03/angeladuckworth/pulls/71"}}},"pull_request":{"url":"https://api.github.com/repos/lukad03/angeladuckworth/pulls/71","id":56120173,"html_url":"https://github.com/lukad03/angeladuckworth/pull/71","diff_url":"https://github.com/lukad03/angeladuckworth/pull/71.diff","patch_url":"https://github.com/lukad03/angeladuckworth/pull/71.patch","issue_url":"https://api.github.com/repos/lukad03/angeladuckworth/issues/71","number":71,"state":"open","locked":false,"title":"Contact Form and Plugin Updates","user":{"login":"lukad03","id":2506817,"avatar_url":"https://avatars.githubusercontent.com/u/2506817?v=3","gravatar_id":"","url":"https://api.github.com/users/lukad03","html_url":"https://github.com/lukad03","followers_url":"https://api.github.com/users/lukad03/followers","following_url":"https://api.github.com/users/lukad03/following{/other_user}","gists_url":"https://api.github.com/users/lukad03/gists{/gist_id}","starred_url":"https://api.github.com/users/lukad03/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lukad03/subscriptions","organizations_url":"https://api.github.com/users/lukad03/orgs","repos_url":"https://api.github.com/users/lukad03/repos","events_url":"https://api.github.com/users/lukad03/events{/privacy}","received_events_url":"https://api.github.com/users/lukad03/received_events","type":"User","site_admin":false},"body":"Adds the WP Contact Form plugin for integration into the Contact page. Also adds styles for the contact form, and applies updates to plugins.\r\n\r\n* Add WP Contact Form plugin\r\n* Add styles for contact form\r\n* Update plugins","created_at":"2016-01-15T01:34:12Z","updated_at":"2016-01-15T01:34:32Z","closed_at":null,"merged_at":null,"merge_commit_sha":"66c3677d929a30373951eed983afe24c35af4c83","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/lukad03/angeladuckworth/pulls/71/commits","review_comments_url":"https://api.github.com/repos/lukad03/angeladuckworth/pulls/71/comments","review_comment_url":"https://api.github.com/repos/lukad03/angeladuckworth/pulls/comments{/number}","comments_url":"https://api.github.com/repos/lukad03/angeladuckworth/issues/71/comments","statuses_url":"https://api.github.com/repos/lukad03/angeladuckworth/statuses/6b7397dffcbc652a08bda8a66043a8b90bb94ef1","head":{"label":"lukad03:lk-contact-form","ref":"lk-contact-form","sha":"6b7397dffcbc652a08bda8a66043a8b90bb94ef1","user":{"login":"lukad03","id":2506817,"avatar_url":"https://avatars.githubusercontent.com/u/2506817?v=3","gravatar_id":"","url":"https://api.github.com/users/lukad03","html_url":"https://github.com/lukad03","followers_url":"https://api.github.com/users/lukad03/followers","following_url":"https://api.github.com/users/lukad03/following{/other_user}","gists_url":"https://api.github.com/users/lukad03/gists{/gist_id}","starred_url":"https://api.github.com/users/lukad03/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lukad03/subscriptions","organizations_url":"https://api.github.com/users/lukad03/orgs","repos_url":"https://api.github.com/users/lukad03/repos","events_url":"https://api.github.com/users/lukad03/events{/privacy}","received_events_url":"https://api.github.com/users/lukad03/received_events","type":"User","site_admin":false},"repo":{"id":43980220,"name":"angeladuckworth","full_name":"lukad03/angeladuckworth","owner":{"login":"lukad03","id":2506817,"avatar_url":"https://avatars.githubusercontent.com/u/2506817?v=3","gravatar_id":"","url":"https://api.github.com/users/lukad03","html_url":"https://github.com/lukad03","followers_url":"https://api.github.com/users/lukad03/followers","following_url":"https://api.github.com/users/lukad03/following{/other_user}","gists_url":"https://api.github.com/users/lukad03/gists{/gist_id}","starred_url":"https://api.github.com/users/lukad03/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lukad03/subscriptions","organizations_url":"https://api.github.com/users/lukad03/orgs","repos_url":"https://api.github.com/users/lukad03/repos","events_url":"https://api.github.com/users/lukad03/events{/privacy}","received_events_url":"https://api.github.com/users/lukad03/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/lukad03/angeladuckworth","description":"","fork":false,"url":"https://api.github.com/repos/lukad03/angeladuckworth","forks_url":"https://api.github.com/repos/lukad03/angeladuckworth/forks","keys_url":"https://api.github.com/repos/lukad03/angeladuckworth/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lukad03/angeladuckworth/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lukad03/angeladuckworth/teams","hooks_url":"https://api.github.com/repos/lukad03/angeladuckworth/hooks","issue_events_url":"https://api.github.com/repos/lukad03/angeladuckworth/issues/events{/number}","events_url":"https://api.github.com/repos/lukad03/angeladuckworth/events","assignees_url":"https://api.github.com/repos/lukad03/angeladuckworth/assignees{/user}","branches_url":"https://api.github.com/repos/lukad03/angeladuckworth/branches{/branch}","tags_url":"https://api.github.com/repos/lukad03/angeladuckworth/tags","blobs_url":"https://api.github.com/repos/lukad03/angeladuckworth/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lukad03/angeladuckworth/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lukad03/angeladuckworth/git/refs{/sha}","trees_url":"https://api.github.com/repos/lukad03/angeladuckworth/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lukad03/angeladuckworth/statuses/{sha}","languages_url":"https://api.github.com/repos/lukad03/angeladuckworth/languages","stargazers_url":"https://api.github.com/repos/lukad03/angeladuckworth/stargazers","contributors_url":"https://api.github.com/repos/lukad03/angeladuckworth/contributors","subscribers_url":"https://api.github.com/repos/lukad03/angeladuckworth/subscribers","subscription_url":"https://api.github.com/repos/lukad03/angeladuckworth/subscription","commits_url":"https://api.github.com/repos/lukad03/angeladuckworth/commits{/sha}","git_commits_url":"https://api.github.com/repos/lukad03/angeladuckworth/git/commits{/sha}","comments_url":"https://api.github.com/repos/lukad03/angeladuckworth/comments{/number}","issue_comment_url":"https://api.github.com/repos/lukad03/angeladuckworth/issues/comments{/number}","contents_url":"https://api.github.com/repos/lukad03/angeladuckworth/contents/{+path}","compare_url":"https://api.github.com/repos/lukad03/angeladuckworth/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lukad03/angeladuckworth/merges","archive_url":"https://api.github.com/repos/lukad03/angeladuckworth/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lukad03/angeladuckworth/downloads","issues_url":"https://api.github.com/repos/lukad03/angeladuckworth/issues{/number}","pulls_url":"https://api.github.com/repos/lukad03/angeladuckworth/pulls{/number}","milestones_url":"https://api.github.com/repos/lukad03/angeladuckworth/milestones{/number}","notifications_url":"https://api.github.com/repos/lukad03/angeladuckworth/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lukad03/angeladuckworth/labels{/name}","releases_url":"https://api.github.com/repos/lukad03/angeladuckworth/releases{/id}","created_at":"2015-10-09T21:08:12Z","updated_at":"2016-01-13T19:08:13Z","pushed_at":"2016-01-15T01:34:12Z","git_url":"git://github.com/lukad03/angeladuckworth.git","ssh_url":"git@github.com:lukad03/angeladuckworth.git","clone_url":"https://github.com/lukad03/angeladuckworth.git","svn_url":"https://github.com/lukad03/angeladuckworth","homepage":"http://angeladuckworth.com","size":5648,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"lukad03:master","ref":"master","sha":"de0fb096d7705b8e1757c00c8a2931bca1474d28","user":{"login":"lukad03","id":2506817,"avatar_url":"https://avatars.githubusercontent.com/u/2506817?v=3","gravatar_id":"","url":"https://api.github.com/users/lukad03","html_url":"https://github.com/lukad03","followers_url":"https://api.github.com/users/lukad03/followers","following_url":"https://api.github.com/users/lukad03/following{/other_user}","gists_url":"https://api.github.com/users/lukad03/gists{/gist_id}","starred_url":"https://api.github.com/users/lukad03/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lukad03/subscriptions","organizations_url":"https://api.github.com/users/lukad03/orgs","repos_url":"https://api.github.com/users/lukad03/repos","events_url":"https://api.github.com/users/lukad03/events{/privacy}","received_events_url":"https://api.github.com/users/lukad03/received_events","type":"User","site_admin":false},"repo":{"id":43980220,"name":"angeladuckworth","full_name":"lukad03/angeladuckworth","owner":{"login":"lukad03","id":2506817,"avatar_url":"https://avatars.githubusercontent.com/u/2506817?v=3","gravatar_id":"","url":"https://api.github.com/users/lukad03","html_url":"https://github.com/lukad03","followers_url":"https://api.github.com/users/lukad03/followers","following_url":"https://api.github.com/users/lukad03/following{/other_user}","gists_url":"https://api.github.com/users/lukad03/gists{/gist_id}","starred_url":"https://api.github.com/users/lukad03/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lukad03/subscriptions","organizations_url":"https://api.github.com/users/lukad03/orgs","repos_url":"https://api.github.com/users/lukad03/repos","events_url":"https://api.github.com/users/lukad03/events{/privacy}","received_events_url":"https://api.github.com/users/lukad03/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/lukad03/angeladuckworth","description":"","fork":false,"url":"https://api.github.com/repos/lukad03/angeladuckworth","forks_url":"https://api.github.com/repos/lukad03/angeladuckworth/forks","keys_url":"https://api.github.com/repos/lukad03/angeladuckworth/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lukad03/angeladuckworth/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lukad03/angeladuckworth/teams","hooks_url":"https://api.github.com/repos/lukad03/angeladuckworth/hooks","issue_events_url":"https://api.github.com/repos/lukad03/angeladuckworth/issues/events{/number}","events_url":"https://api.github.com/repos/lukad03/angeladuckworth/events","assignees_url":"https://api.github.com/repos/lukad03/angeladuckworth/assignees{/user}","branches_url":"https://api.github.com/repos/lukad03/angeladuckworth/branches{/branch}","tags_url":"https://api.github.com/repos/lukad03/angeladuckworth/tags","blobs_url":"https://api.github.com/repos/lukad03/angeladuckworth/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lukad03/angeladuckworth/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lukad03/angeladuckworth/git/refs{/sha}","trees_url":"https://api.github.com/repos/lukad03/angeladuckworth/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lukad03/angeladuckworth/statuses/{sha}","languages_url":"https://api.github.com/repos/lukad03/angeladuckworth/languages","stargazers_url":"https://api.github.com/repos/lukad03/angeladuckworth/stargazers","contributors_url":"https://api.github.com/repos/lukad03/angeladuckworth/contributors","subscribers_url":"https://api.github.com/repos/lukad03/angeladuckworth/subscribers","subscription_url":"https://api.github.com/repos/lukad03/angeladuckworth/subscription","commits_url":"https://api.github.com/repos/lukad03/angeladuckworth/commits{/sha}","git_commits_url":"https://api.github.com/repos/lukad03/angeladuckworth/git/commits{/sha}","comments_url":"https://api.github.com/repos/lukad03/angeladuckworth/comments{/number}","issue_comment_url":"https://api.github.com/repos/lukad03/angeladuckworth/issues/comments{/number}","contents_url":"https://api.github.com/repos/lukad03/angeladuckworth/contents/{+path}","compare_url":"https://api.github.com/repos/lukad03/angeladuckworth/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lukad03/angeladuckworth/merges","archive_url":"https://api.github.com/repos/lukad03/angeladuckworth/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lukad03/angeladuckworth/downloads","issues_url":"https://api.github.com/repos/lukad03/angeladuckworth/issues{/number}","pulls_url":"https://api.github.com/repos/lukad03/angeladuckworth/pulls{/number}","milestones_url":"https://api.github.com/repos/lukad03/angeladuckworth/milestones{/number}","notifications_url":"https://api.github.com/repos/lukad03/angeladuckworth/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lukad03/angeladuckworth/labels{/name}","releases_url":"https://api.github.com/repos/lukad03/angeladuckworth/releases{/id}","created_at":"2015-10-09T21:08:12Z","updated_at":"2016-01-13T19:08:13Z","pushed_at":"2016-01-15T01:34:12Z","git_url":"git://github.com/lukad03/angeladuckworth.git","ssh_url":"git@github.com:lukad03/angeladuckworth.git","clone_url":"https://github.com/lukad03/angeladuckworth.git","svn_url":"https://github.com/lukad03/angeladuckworth","homepage":"http://angeladuckworth.com","size":5648,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/lukad03/angeladuckworth/pulls/71"},"html":{"href":"https://github.com/lukad03/angeladuckworth/pull/71"},"issue":{"href":"https://api.github.com/repos/lukad03/angeladuckworth/issues/71"},"comments":{"href":"https://api.github.com/repos/lukad03/angeladuckworth/issues/71/comments"},"review_comments":{"href":"https://api.github.com/repos/lukad03/angeladuckworth/pulls/71/comments"},"review_comment":{"href":"https://api.github.com/repos/lukad03/angeladuckworth/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/lukad03/angeladuckworth/pulls/71/commits"},"statuses":{"href":"https://api.github.com/repos/lukad03/angeladuckworth/statuses/6b7397dffcbc652a08bda8a66043a8b90bb94ef1"}}}}