{"action":"created","comment":{"url":"https://api.github.com/repos/fusioneng/image-shortcake/pulls/comments/29882521","id":29882521,"diff_hunk":"@@ -16,6 +16,30 @@ class Img_Shortcode {\n \t * filter.\n \t */\n \tpublic static function get_shortcode_ui_args() {\n+\t\tglobal $_wp_additional_image_sizes;\n+\n+\t\t$default_sizes = array(\n+\t\t\t'thumbnail' => __( 'Thumbnail', 'image-shortcake' ),\n+\t\t\t'medium'    => __( 'Medium',    'image-shortcake' ),\n+\t\t\t'large'     => __( 'Large',     'image-shortcake' ),\n+\t\t\t'full'      => __( 'Full size', 'image-shortcake' ),","path":"inc/class-img-shortcode.php","position":10,"original_position":10,"commit_id":"1e637253ee6d0414638b069da33f5829b4660326","original_commit_id":"1e637253ee6d0414638b069da33f5829b4660326","user":{"login":"goldenapples","id":665992,"avatar_url":"https://avatars.githubusercontent.com/u/665992?v=3","gravatar_id":"","url":"https://api.github.com/users/goldenapples","html_url":"https://github.com/goldenapples","followers_url":"https://api.github.com/users/goldenapples/followers","following_url":"https://api.github.com/users/goldenapples/following{/other_user}","gists_url":"https://api.github.com/users/goldenapples/gists{/gist_id}","starred_url":"https://api.github.com/users/goldenapples/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/goldenapples/subscriptions","organizations_url":"https://api.github.com/users/goldenapples/orgs","repos_url":"https://api.github.com/users/goldenapples/repos","events_url":"https://api.github.com/users/goldenapples/events{/privacy}","received_events_url":"https://api.github.com/users/goldenapples/received_events","type":"User","site_admin":false},"body":"Its being escaped below in line 41, after adding the width to it. Didn't want to double-escape it. Should it be marked or commented somehow to pass automated sniffs?","created_at":"2015-05-07T18:40:44Z","updated_at":"2015-05-07T18:40:44Z","html_url":"https://github.com/fusioneng/image-shortcake/pull/27#discussion_r29882521","pull_request_url":"https://api.github.com/repos/fusioneng/image-shortcake/pulls/27","_links":{"self":{"href":"https://api.github.com/repos/fusioneng/image-shortcake/pulls/comments/29882521"},"html":{"href":"https://github.com/fusioneng/image-shortcake/pull/27#discussion_r29882521"},"pull_request":{"href":"https://api.github.com/repos/fusioneng/image-shortcake/pulls/27"}}},"pull_request":{"url":"https://api.github.com/repos/fusioneng/image-shortcake/pulls/27","id":34929481,"html_url":"https://github.com/fusioneng/image-shortcake/pull/27","diff_url":"https://github.com/fusioneng/image-shortcake/pull/27.diff","patch_url":"https://github.com/fusioneng/image-shortcake/pull/27.patch","issue_url":"https://api.github.com/repos/fusioneng/image-shortcake/issues/27","number":27,"state":"open","locked":false,"title":"Include custom image sizes in shortcode UI","user":{"login":"goldenapples","id":665992,"avatar_url":"https://avatars.githubusercontent.com/u/665992?v=3","gravatar_id":"","url":"https://api.github.com/users/goldenapples","html_url":"https://github.com/goldenapples","followers_url":"https://api.github.com/users/goldenapples/followers","following_url":"https://api.github.com/users/goldenapples/following{/other_user}","gists_url":"https://api.github.com/users/goldenapples/gists{/gist_id}","starred_url":"https://api.github.com/users/goldenapples/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/goldenapples/subscriptions","organizations_url":"https://api.github.com/users/goldenapples/orgs","repos_url":"https://api.github.com/users/goldenapples/repos","events_url":"https://api.github.com/users/goldenapples/events{/privacy}","received_events_url":"https://api.github.com/users/goldenapples/received_events","type":"User","site_admin":false},"body":"Runs the image sizes available through the `image_size_names_choose`\r\nfilter, so that custom image sizes added in themes can also be available\r\nfor selection through the UI here.\r\n\r\nAddresses #24.","created_at":"2015-05-07T15:47:25Z","updated_at":"2015-05-07T18:40:44Z","closed_at":null,"merged_at":null,"merge_commit_sha":"911caa57053e3eb2bab38683ffb5aa6df0b96e6a","assignee":{"login":"goldenapples","id":665992,"avatar_url":"https://avatars.githubusercontent.com/u/665992?v=3","gravatar_id":"","url":"https://api.github.com/users/goldenapples","html_url":"https://github.com/goldenapples","followers_url":"https://api.github.com/users/goldenapples/followers","following_url":"https://api.github.com/users/goldenapples/following{/other_user}","gists_url":"https://api.github.com/users/goldenapples/gists{/gist_id}","starred_url":"https://api.github.com/users/goldenapples/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/goldenapples/subscriptions","organizations_url":"https://api.github.com/users/goldenapples/orgs","repos_url":"https://api.github.com/users/goldenapples/repos","events_url":"https://api.github.com/users/goldenapples/events{/privacy}","received_events_url":"https://api.github.com/users/goldenapples/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/fusioneng/image-shortcake/milestones/1","html_url":"https://github.com/fusioneng/image-shortcake/milestones/v0.1.0","labels_url":"https://api.github.com/repos/fusioneng/image-shortcake/milestones/1/labels","id":1076196,"number":1,"title":"v0.1.0","description":"","creator":{"login":"danielbachhuber","id":36432,"avatar_url":"https://avatars.githubusercontent.com/u/36432?v=3","gravatar_id":"","url":"https://api.github.com/users/danielbachhuber","html_url":"https://github.com/danielbachhuber","followers_url":"https://api.github.com/users/danielbachhuber/followers","following_url":"https://api.github.com/users/danielbachhuber/following{/other_user}","gists_url":"https://api.github.com/users/danielbachhuber/gists{/gist_id}","starred_url":"https://api.github.com/users/danielbachhuber/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danielbachhuber/subscriptions","organizations_url":"https://api.github.com/users/danielbachhuber/orgs","repos_url":"https://api.github.com/users/danielbachhuber/repos","events_url":"https://api.github.com/users/danielbachhuber/events{/privacy}","received_events_url":"https://api.github.com/users/danielbachhuber/received_events","type":"User","site_admin":false},"open_issues":7,"closed_issues":16,"state":"open","created_at":"2015-04-20T22:50:21Z","updated_at":"2015-05-07T18:35:17Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/fusioneng/image-shortcake/pulls/27/commits","review_comments_url":"https://api.github.com/repos/fusioneng/image-shortcake/pulls/27/comments","review_comment_url":"https://api.github.com/repos/fusioneng/image-shortcake/pulls/comments{/number}","comments_url":"https://api.github.com/repos/fusioneng/image-shortcake/issues/27/comments","statuses_url":"https://api.github.com/repos/fusioneng/image-shortcake/statuses/1e637253ee6d0414638b069da33f5829b4660326","head":{"label":"fusioneng:24-add-custom-image-sizes","ref":"24-add-custom-image-sizes","sha":"1e637253ee6d0414638b069da33f5829b4660326","user":{"login":"fusioneng","id":8161069,"avatar_url":"https://avatars.githubusercontent.com/u/8161069?v=3","gravatar_id":"","url":"https://api.github.com/users/fusioneng","html_url":"https://github.com/fusioneng","followers_url":"https://api.github.com/users/fusioneng/followers","following_url":"https://api.github.com/users/fusioneng/following{/other_user}","gists_url":"https://api.github.com/users/fusioneng/gists{/gist_id}","starred_url":"https://api.github.com/users/fusioneng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fusioneng/subscriptions","organizations_url":"https://api.github.com/users/fusioneng/orgs","repos_url":"https://api.github.com/users/fusioneng/repos","events_url":"https://api.github.com/users/fusioneng/events{/privacy}","received_events_url":"https://api.github.com/users/fusioneng/received_events","type":"Organization","site_admin":false},"repo":{"id":33891781,"name":"image-shortcake","full_name":"fusioneng/image-shortcake","owner":{"login":"fusioneng","id":8161069,"avatar_url":"https://avatars.githubusercontent.com/u/8161069?v=3","gravatar_id":"","url":"https://api.github.com/users/fusioneng","html_url":"https://github.com/fusioneng","followers_url":"https://api.github.com/users/fusioneng/followers","following_url":"https://api.github.com/users/fusioneng/following{/other_user}","gists_url":"https://api.github.com/users/fusioneng/gists{/gist_id}","starred_url":"https://api.github.com/users/fusioneng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fusioneng/subscriptions","organizations_url":"https://api.github.com/users/fusioneng/orgs","repos_url":"https://api.github.com/users/fusioneng/repos","events_url":"https://api.github.com/users/fusioneng/events{/privacy}","received_events_url":"https://api.github.com/users/fusioneng/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/fusioneng/image-shortcake","description":"Images as shortcodes","fork":false,"url":"https://api.github.com/repos/fusioneng/image-shortcake","forks_url":"https://api.github.com/repos/fusioneng/image-shortcake/forks","keys_url":"https://api.github.com/repos/fusioneng/image-shortcake/keys{/key_id}","collaborators_url":"https://api.github.com/repos/fusioneng/image-shortcake/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/fusioneng/image-shortcake/teams","hooks_url":"https://api.github.com/repos/fusioneng/image-shortcake/hooks","issue_events_url":"https://api.github.com/repos/fusioneng/image-shortcake/issues/events{/number}","events_url":"https://api.github.com/repos/fusioneng/image-shortcake/events","assignees_url":"https://api.github.com/repos/fusioneng/image-shortcake/assignees{/user}","branches_url":"https://api.github.com/repos/fusioneng/image-shortcake/branches{/branch}","tags_url":"https://api.github.com/repos/fusioneng/image-shortcake/tags","blobs_url":"https://api.github.com/repos/fusioneng/image-shortcake/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/fusioneng/image-shortcake/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/fusioneng/image-shortcake/git/refs{/sha}","trees_url":"https://api.github.com/repos/fusioneng/image-shortcake/git/trees{/sha}","statuses_url":"https://api.github.com/repos/fusioneng/image-shortcake/statuses/{sha}","languages_url":"https://api.github.com/repos/fusioneng/image-shortcake/languages","stargazers_url":"https://api.github.com/repos/fusioneng/image-shortcake/stargazers","contributors_url":"https://api.github.com/repos/fusioneng/image-shortcake/contributors","subscribers_url":"https://api.github.com/repos/fusioneng/image-shortcake/subscribers","subscription_url":"https://api.github.com/repos/fusioneng/image-shortcake/subscription","commits_url":"https://api.github.com/repos/fusioneng/image-shortcake/commits{/sha}","git_commits_url":"https://api.github.com/repos/fusioneng/image-shortcake/git/commits{/sha}","comments_url":"https://api.github.com/repos/fusioneng/image-shortcake/comments{/number}","issue_comment_url":"https://api.github.com/repos/fusioneng/image-shortcake/issues/comments{/number}","contents_url":"https://api.github.com/repos/fusioneng/image-shortcake/contents/{+path}","compare_url":"https://api.github.com/repos/fusioneng/image-shortcake/compare/{base}...{head}","merges_url":"https://api.github.com/repos/fusioneng/image-shortcake/merges","archive_url":"https://api.github.com/repos/fusioneng/image-shortcake/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/fusioneng/image-shortcake/downloads","issues_url":"https://api.github.com/repos/fusioneng/image-shortcake/issues{/number}","pulls_url":"https://api.github.com/repos/fusioneng/image-shortcake/pulls{/number}","milestones_url":"https://api.github.com/repos/fusioneng/image-shortcake/milestones{/number}","notifications_url":"https://api.github.com/repos/fusioneng/image-shortcake/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/fusioneng/image-shortcake/labels{/name}","releases_url":"https://api.github.com/repos/fusioneng/image-shortcake/releases{/id}","created_at":"2015-04-13T20:20:29Z","updated_at":"2015-05-07T18:33:53Z","pushed_at":"2015-05-07T18:33:54Z","git_url":"git://github.com/fusioneng/image-shortcake.git","ssh_url":"git@github.com:fusioneng/image-shortcake.git","clone_url":"https://github.com/fusioneng/image-shortcake.git","svn_url":"https://github.com/fusioneng/image-shortcake","homepage":null,"size":480,"stargazers_count":1,"watchers_count":1,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":11,"forks":0,"open_issues":11,"watchers":1,"default_branch":"master"}},"base":{"label":"fusioneng:master","ref":"master","sha":"e3cb8a56aacf3d462fb73fdf0d5f696b386ac282","user":{"login":"fusioneng","id":8161069,"avatar_url":"https://avatars.githubusercontent.com/u/8161069?v=3","gravatar_id":"","url":"https://api.github.com/users/fusioneng","html_url":"https://github.com/fusioneng","followers_url":"https://api.github.com/users/fusioneng/followers","following_url":"https://api.github.com/users/fusioneng/following{/other_user}","gists_url":"https://api.github.com/users/fusioneng/gists{/gist_id}","starred_url":"https://api.github.com/users/fusioneng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fusioneng/subscriptions","organizations_url":"https://api.github.com/users/fusioneng/orgs","repos_url":"https://api.github.com/users/fusioneng/repos","events_url":"https://api.github.com/users/fusioneng/events{/privacy}","received_events_url":"https://api.github.com/users/fusioneng/received_events","type":"Organization","site_admin":false},"repo":{"id":33891781,"name":"image-shortcake","full_name":"fusioneng/image-shortcake","owner":{"login":"fusioneng","id":8161069,"avatar_url":"https://avatars.githubusercontent.com/u/8161069?v=3","gravatar_id":"","url":"https://api.github.com/users/fusioneng","html_url":"https://github.com/fusioneng","followers_url":"https://api.github.com/users/fusioneng/followers","following_url":"https://api.github.com/users/fusioneng/following{/other_user}","gists_url":"https://api.github.com/users/fusioneng/gists{/gist_id}","starred_url":"https://api.github.com/users/fusioneng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fusioneng/subscriptions","organizations_url":"https://api.github.com/users/fusioneng/orgs","repos_url":"https://api.github.com/users/fusioneng/repos","events_url":"https://api.github.com/users/fusioneng/events{/privacy}","received_events_url":"https://api.github.com/users/fusioneng/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/fusioneng/image-shortcake","description":"Images as shortcodes","fork":false,"url":"https://api.github.com/repos/fusioneng/image-shortcake","forks_url":"https://api.github.com/repos/fusioneng/image-shortcake/forks","keys_url":"https://api.github.com/repos/fusioneng/image-shortcake/keys{/key_id}","collaborators_url":"https://api.github.com/repos/fusioneng/image-shortcake/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/fusioneng/image-shortcake/teams","hooks_url":"https://api.github.com/repos/fusioneng/image-shortcake/hooks","issue_events_url":"https://api.github.com/repos/fusioneng/image-shortcake/issues/events{/number}","events_url":"https://api.github.com/repos/fusioneng/image-shortcake/events","assignees_url":"https://api.github.com/repos/fusioneng/image-shortcake/assignees{/user}","branches_url":"https://api.github.com/repos/fusioneng/image-shortcake/branches{/branch}","tags_url":"https://api.github.com/repos/fusioneng/image-shortcake/tags","blobs_url":"https://api.github.com/repos/fusioneng/image-shortcake/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/fusioneng/image-shortcake/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/fusioneng/image-shortcake/git/refs{/sha}","trees_url":"https://api.github.com/repos/fusioneng/image-shortcake/git/trees{/sha}","statuses_url":"https://api.github.com/repos/fusioneng/image-shortcake/statuses/{sha}","languages_url":"https://api.github.com/repos/fusioneng/image-shortcake/languages","stargazers_url":"https://api.github.com/repos/fusioneng/image-shortcake/stargazers","contributors_url":"https://api.github.com/repos/fusioneng/image-shortcake/contributors","subscribers_url":"https://api.github.com/repos/fusioneng/image-shortcake/subscribers","subscription_url":"https://api.github.com/repos/fusioneng/image-shortcake/subscription","commits_url":"https://api.github.com/repos/fusioneng/image-shortcake/commits{/sha}","git_commits_url":"https://api.github.com/repos/fusioneng/image-shortcake/git/commits{/sha}","comments_url":"https://api.github.com/repos/fusioneng/image-shortcake/comments{/number}","issue_comment_url":"https://api.github.com/repos/fusioneng/image-shortcake/issues/comments{/number}","contents_url":"https://api.github.com/repos/fusioneng/image-shortcake/contents/{+path}","compare_url":"https://api.github.com/repos/fusioneng/image-shortcake/compare/{base}...{head}","merges_url":"https://api.github.com/repos/fusioneng/image-shortcake/merges","archive_url":"https://api.github.com/repos/fusioneng/image-shortcake/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/fusioneng/image-shortcake/downloads","issues_url":"https://api.github.com/repos/fusioneng/image-shortcake/issues{/number}","pulls_url":"https://api.github.com/repos/fusioneng/image-shortcake/pulls{/number}","milestones_url":"https://api.github.com/repos/fusioneng/image-shortcake/milestones{/number}","notifications_url":"https://api.github.com/repos/fusioneng/image-shortcake/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/fusioneng/image-shortcake/labels{/name}","releases_url":"https://api.github.com/repos/fusioneng/image-shortcake/releases{/id}","created_at":"2015-04-13T20:20:29Z","updated_at":"2015-05-07T18:33:53Z","pushed_at":"2015-05-07T18:33:54Z","git_url":"git://github.com/fusioneng/image-shortcake.git","ssh_url":"git@github.com:fusioneng/image-shortcake.git","clone_url":"https://github.com/fusioneng/image-shortcake.git","svn_url":"https://github.com/fusioneng/image-shortcake","homepage":null,"size":480,"stargazers_count":1,"watchers_count":1,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":11,"forks":0,"open_issues":11,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/fusioneng/image-shortcake/pulls/27"},"html":{"href":"https://github.com/fusioneng/image-shortcake/pull/27"},"issue":{"href":"https://api.github.com/repos/fusioneng/image-shortcake/issues/27"},"comments":{"href":"https://api.github.com/repos/fusioneng/image-shortcake/issues/27/comments"},"review_comments":{"href":"https://api.github.com/repos/fusioneng/image-shortcake/pulls/27/comments"},"review_comment":{"href":"https://api.github.com/repos/fusioneng/image-shortcake/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/fusioneng/image-shortcake/pulls/27/commits"},"statuses":{"href":"https://api.github.com/repos/fusioneng/image-shortcake/statuses/1e637253ee6d0414638b069da33f5829b4660326"}}}}