{"action":"created","comment":{"url":"https://api.github.com/repos/wp-shortcake/shortcake-bakery/pulls/comments/46983460","id":46983460,"diff_hunk":"@@ -139,6 +140,13 @@ public function action_admin_enqueue_scripts() {\n \t\t\t'nonces' => array(\n \t\t\t\t'customEmbedReverse' => wp_create_nonce( 'embed-reverse' ),\n \t\t\t),\n+\t\t\t'shortcodes' => array_flip(\n+\t\t\t\tarray_map(\n+\t\t\t\t\tfunction( $class ) {\n+\t\t\t\t\t\treturn str_replace( 'Shortcake_Bakery\\\\Shortcodes\\\\', '', $class );","path":"inc/class-shortcake-bakery.php","position":15,"original_position":15,"commit_id":"1cb072353bf7fd3fc17118ace53299291297685c","original_commit_id":"1cb072353bf7fd3fc17118ace53299291297685c","user":{"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},"body":"Shouldn't we run `get_shortcode_tag()` for each class, as other namespaces won't benefit from this `str_replace()` ?","created_at":"2015-12-08T17:19:52Z","updated_at":"2015-12-08T17:19:52Z","html_url":"https://github.com/wp-shortcake/shortcake-bakery/pull/157#discussion_r46983460","pull_request_url":"https://api.github.com/repos/wp-shortcake/shortcake-bakery/pulls/157","_links":{"self":{"href":"https://api.github.com/repos/wp-shortcake/shortcake-bakery/pulls/comments/46983460"},"html":{"href":"https://github.com/wp-shortcake/shortcake-bakery/pull/157#discussion_r46983460"},"pull_request":{"href":"https://api.github.com/repos/wp-shortcake/shortcake-bakery/pulls/157"}}},"pull_request":{"url":"https://api.github.com/repos/wp-shortcake/shortcake-bakery/pulls/157","id":51267778,"html_url":"https://github.com/wp-shortcake/shortcake-bakery/pull/157","diff_url":"https://github.com/wp-shortcake/shortcake-bakery/pull/157.diff","patch_url":"https://github.com/wp-shortcake/shortcake-bakery/pull/157.patch","issue_url":"https://api.github.com/repos/wp-shortcake/shortcake-bakery/issues/157","number":157,"state":"open","locked":false,"title":"Add GoogleDocs shortcode","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":"#113","created_at":"2015-11-19T19:20:54Z","updated_at":"2015-12-08T17:19:52Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6d66149c61a62f11840fdb1510fc70ef1a7021c3","assignee":{"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},"milestone":{"url":"https://api.github.com/repos/wp-shortcake/shortcake-bakery/milestones/2","html_url":"https://github.com/wp-shortcake/shortcake-bakery/milestones/v0.2.0","labels_url":"https://api.github.com/repos/wp-shortcake/shortcake-bakery/milestones/2/labels","id":1213280,"number":2,"title":"v0.2.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":2,"closed_issues":75,"state":"open","created_at":"2015-07-17T17:35:22Z","updated_at":"2015-11-23T12:42:41Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/wp-shortcake/shortcake-bakery/pulls/157/commits","review_comments_url":"https://api.github.com/repos/wp-shortcake/shortcake-bakery/pulls/157/comments","review_comment_url":"https://api.github.com/repos/wp-shortcake/shortcake-bakery/pulls/comments{/number}","comments_url":"https://api.github.com/repos/wp-shortcake/shortcake-bakery/issues/157/comments","statuses_url":"https://api.github.com/repos/wp-shortcake/shortcake-bakery/statuses/1cb072353bf7fd3fc17118ace53299291297685c","head":{"label":"wp-shortcake:113-google-docs-shortcode","ref":"113-google-docs-shortcode","sha":"1cb072353bf7fd3fc17118ace53299291297685c","user":{"login":"wp-shortcake","id":15324914,"avatar_url":"https://avatars.githubusercontent.com/u/15324914?v=3","gravatar_id":"","url":"https://api.github.com/users/wp-shortcake","html_url":"https://github.com/wp-shortcake","followers_url":"https://api.github.com/users/wp-shortcake/followers","following_url":"https://api.github.com/users/wp-shortcake/following{/other_user}","gists_url":"https://api.github.com/users/wp-shortcake/gists{/gist_id}","starred_url":"https://api.github.com/users/wp-shortcake/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wp-shortcake/subscriptions","organizations_url":"https://api.github.com/users/wp-shortcake/orgs","repos_url":"https://api.github.com/users/wp-shortcake/repos","events_url":"https://api.github.com/users/wp-shortcake/events{/privacy}","received_events_url":"https://api.github.com/users/wp-shortcake/received_events","type":"Organization","site_admin":false},"repo":{"id":34340969,"name":"shortcake-bakery","full_name":"wp-shortcake/shortcake-bakery","owner":{"login":"wp-shortcake","id":15324914,"avatar_url":"https://avatars.githubusercontent.com/u/15324914?v=3","gravatar_id":"","url":"https://api.github.com/users/wp-shortcake","html_url":"https://github.com/wp-shortcake","followers_url":"https://api.github.com/users/wp-shortcake/followers","following_url":"https://api.github.com/users/wp-shortcake/following{/other_user}","gists_url":"https://api.github.com/users/wp-shortcake/gists{/gist_id}","starred_url":"https://api.github.com/users/wp-shortcake/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wp-shortcake/subscriptions","organizations_url":"https://api.github.com/users/wp-shortcake/orgs","repos_url":"https://api.github.com/users/wp-shortcake/repos","events_url":"https://api.github.com/users/wp-shortcake/events{/privacy}","received_events_url":"https://api.github.com/users/wp-shortcake/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/wp-shortcake/shortcake-bakery","description":"A fine selection of shortcodes for WordPress","fork":false,"url":"https://api.github.com/repos/wp-shortcake/shortcake-bakery","forks_url":"https://api.github.com/repos/wp-shortcake/shortcake-bakery/forks","keys_url":"https://api.github.com/repos/wp-shortcake/shortcake-bakery/keys{/key_id}","collaborators_url":"https://api.github.com/repos/wp-shortcake/shortcake-bakery/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/wp-shortcake/shortcake-bakery/teams","hooks_url":"https://api.github.com/repos/wp-shortcake/shortcake-bakery/hooks","issue_events_url":"https://api.github.com/repos/wp-shortcake/shortcake-bakery/issues/events{/number}","events_url":"https://api.github.com/repos/wp-shortcake/shortcake-bakery/events","assignees_url":"https://api.github.com/repos/wp-shortcake/shortcake-bakery/assignees{/user}","branches_url":"https://api.github.com/repos/wp-shortcake/shortcake-bakery/branches{/branch}","tags_url":"https://api.github.com/repos/wp-shortcake/shortcake-bakery/tags","blobs_url":"https://api.github.com/repos/wp-shortcake/shortcake-bakery/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/wp-shortcake/shortcake-bakery/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/wp-shortcake/shortcake-bakery/git/refs{/sha}","trees_url":"https://api.github.com/repos/wp-shortcake/shortcake-bakery/git/trees{/sha}","statuses_url":"https://api.github.com/repos/wp-shortcake/shortcake-bakery/statuses/{sha}","languages_url":"https://api.github.com/repos/wp-shortcake/shortcake-bakery/languages","stargazers_url":"https://api.github.com/repos/wp-shortcake/shortcake-bakery/stargazers","contributors_url":"https://api.github.com/repos/wp-shortcake/shortcake-bakery/contributors","subscribers_url":"https://api.github.com/repos/wp-shortcake/shortcake-bakery/subscribers","subscription_url":"https://api.github.com/repos/wp-shortcake/shortcake-bakery/subscription","commits_url":"https://api.github.com/repos/wp-shortcake/shortcake-bakery/commits{/sha}","git_commits_url":"https://api.github.com/repos/wp-shortcake/shortcake-bakery/git/commits{/sha}","comments_url":"https://api.github.com/repos/wp-shortcake/shortcake-bakery/comments{/number}","issue_comment_url":"https://api.github.com/repos/wp-shortcake/shortcake-bakery/issues/comments{/number}","contents_url":"https://api.github.com/repos/wp-shortcake/shortcake-bakery/contents/{+path}","compare_url":"https://api.github.com/repos/wp-shortcake/shortcake-bakery/compare/{base}...{head}","merges_url":"https://api.github.com/repos/wp-shortcake/shortcake-bakery/merges","archive_url":"https://api.github.com/repos/wp-shortcake/shortcake-bakery/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/wp-shortcake/shortcake-bakery/downloads","issues_url":"https://api.github.com/repos/wp-shortcake/shortcake-bakery/issues{/number}","pulls_url":"https://api.github.com/repos/wp-shortcake/shortcake-bakery/pulls{/number}","milestones_url":"https://api.github.com/repos/wp-shortcake/shortcake-bakery/milestones{/number}","notifications_url":"https://api.github.com/repos/wp-shortcake/shortcake-bakery/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/wp-shortcake/shortcake-bakery/labels{/name}","releases_url":"https://api.github.com/repos/wp-shortcake/shortcake-bakery/releases{/id}","created_at":"2015-04-21T17:13:29Z","updated_at":"2015-11-25T16:11:01Z","pushed_at":"2015-12-05T20:10:26Z","git_url":"git://github.com/wp-shortcake/shortcake-bakery.git","ssh_url":"git@github.com:wp-shortcake/shortcake-bakery.git","clone_url":"https://github.com/wp-shortcake/shortcake-bakery.git","svn_url":"https://github.com/wp-shortcake/shortcake-bakery","homepage":null,"size":3133,"stargazers_count":31,"watchers_count":31,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":19,"forks":5,"open_issues":19,"watchers":31,"default_branch":"master"}},"base":{"label":"wp-shortcake:master","ref":"master","sha":"bce5a30248ac3080a2cddc5fa7a75ac2eb534dd7","user":{"login":"wp-shortcake","id":15324914,"avatar_url":"https://avatars.githubusercontent.com/u/15324914?v=3","gravatar_id":"","url":"https://api.github.com/users/wp-shortcake","html_url":"https://github.com/wp-shortcake","followers_url":"https://api.github.com/users/wp-shortcake/followers","following_url":"https://api.github.com/users/wp-shortcake/following{/other_user}","gists_url":"https://api.github.com/users/wp-shortcake/gists{/gist_id}","starred_url":"https://api.github.com/users/wp-shortcake/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wp-shortcake/subscriptions","organizations_url":"https://api.github.com/users/wp-shortcake/orgs","repos_url":"https://api.github.com/users/wp-shortcake/repos","events_url":"https://api.github.com/users/wp-shortcake/events{/privacy}","received_events_url":"https://api.github.com/users/wp-shortcake/received_events","type":"Organization","site_admin":false},"repo":{"id":34340969,"name":"shortcake-bakery","full_name":"wp-shortcake/shortcake-bakery","owner":{"login":"wp-shortcake","id":15324914,"avatar_url":"https://avatars.githubusercontent.com/u/15324914?v=3","gravatar_id":"","url":"https://api.github.com/users/wp-shortcake","html_url":"https://github.com/wp-shortcake","followers_url":"https://api.github.com/users/wp-shortcake/followers","following_url":"https://api.github.com/users/wp-shortcake/following{/other_user}","gists_url":"https://api.github.com/users/wp-shortcake/gists{/gist_id}","starred_url":"https://api.github.com/users/wp-shortcake/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wp-shortcake/subscriptions","organizations_url":"https://api.github.com/users/wp-shortcake/orgs","repos_url":"https://api.github.com/users/wp-shortcake/repos","events_url":"https://api.github.com/users/wp-shortcake/events{/privacy}","received_events_url":"https://api.github.com/users/wp-shortcake/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/wp-shortcake/shortcake-bakery","description":"A fine selection of shortcodes for WordPress","fork":false,"url":"https://api.github.com/repos/wp-shortcake/shortcake-bakery","forks_url":"https://api.github.com/repos/wp-shortcake/shortcake-bakery/forks","keys_url":"https://api.github.com/repos/wp-shortcake/shortcake-bakery/keys{/key_id}","collaborators_url":"https://api.github.com/repos/wp-shortcake/shortcake-bakery/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/wp-shortcake/shortcake-bakery/teams","hooks_url":"https://api.github.com/repos/wp-shortcake/shortcake-bakery/hooks","issue_events_url":"https://api.github.com/repos/wp-shortcake/shortcake-bakery/issues/events{/number}","events_url":"https://api.github.com/repos/wp-shortcake/shortcake-bakery/events","assignees_url":"https://api.github.com/repos/wp-shortcake/shortcake-bakery/assignees{/user}","branches_url":"https://api.github.com/repos/wp-shortcake/shortcake-bakery/branches{/branch}","tags_url":"https://api.github.com/repos/wp-shortcake/shortcake-bakery/tags","blobs_url":"https://api.github.com/repos/wp-shortcake/shortcake-bakery/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/wp-shortcake/shortcake-bakery/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/wp-shortcake/shortcake-bakery/git/refs{/sha}","trees_url":"https://api.github.com/repos/wp-shortcake/shortcake-bakery/git/trees{/sha}","statuses_url":"https://api.github.com/repos/wp-shortcake/shortcake-bakery/statuses/{sha}","languages_url":"https://api.github.com/repos/wp-shortcake/shortcake-bakery/languages","stargazers_url":"https://api.github.com/repos/wp-shortcake/shortcake-bakery/stargazers","contributors_url":"https://api.github.com/repos/wp-shortcake/shortcake-bakery/contributors","subscribers_url":"https://api.github.com/repos/wp-shortcake/shortcake-bakery/subscribers","subscription_url":"https://api.github.com/repos/wp-shortcake/shortcake-bakery/subscription","commits_url":"https://api.github.com/repos/wp-shortcake/shortcake-bakery/commits{/sha}","git_commits_url":"https://api.github.com/repos/wp-shortcake/shortcake-bakery/git/commits{/sha}","comments_url":"https://api.github.com/repos/wp-shortcake/shortcake-bakery/comments{/number}","issue_comment_url":"https://api.github.com/repos/wp-shortcake/shortcake-bakery/issues/comments{/number}","contents_url":"https://api.github.com/repos/wp-shortcake/shortcake-bakery/contents/{+path}","compare_url":"https://api.github.com/repos/wp-shortcake/shortcake-bakery/compare/{base}...{head}","merges_url":"https://api.github.com/repos/wp-shortcake/shortcake-bakery/merges","archive_url":"https://api.github.com/repos/wp-shortcake/shortcake-bakery/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/wp-shortcake/shortcake-bakery/downloads","issues_url":"https://api.github.com/repos/wp-shortcake/shortcake-bakery/issues{/number}","pulls_url":"https://api.github.com/repos/wp-shortcake/shortcake-bakery/pulls{/number}","milestones_url":"https://api.github.com/repos/wp-shortcake/shortcake-bakery/milestones{/number}","notifications_url":"https://api.github.com/repos/wp-shortcake/shortcake-bakery/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/wp-shortcake/shortcake-bakery/labels{/name}","releases_url":"https://api.github.com/repos/wp-shortcake/shortcake-bakery/releases{/id}","created_at":"2015-04-21T17:13:29Z","updated_at":"2015-11-25T16:11:01Z","pushed_at":"2015-12-05T20:10:26Z","git_url":"git://github.com/wp-shortcake/shortcake-bakery.git","ssh_url":"git@github.com:wp-shortcake/shortcake-bakery.git","clone_url":"https://github.com/wp-shortcake/shortcake-bakery.git","svn_url":"https://github.com/wp-shortcake/shortcake-bakery","homepage":null,"size":3133,"stargazers_count":31,"watchers_count":31,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":19,"forks":5,"open_issues":19,"watchers":31,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/wp-shortcake/shortcake-bakery/pulls/157"},"html":{"href":"https://github.com/wp-shortcake/shortcake-bakery/pull/157"},"issue":{"href":"https://api.github.com/repos/wp-shortcake/shortcake-bakery/issues/157"},"comments":{"href":"https://api.github.com/repos/wp-shortcake/shortcake-bakery/issues/157/comments"},"review_comments":{"href":"https://api.github.com/repos/wp-shortcake/shortcake-bakery/pulls/157/comments"},"review_comment":{"href":"https://api.github.com/repos/wp-shortcake/shortcake-bakery/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/wp-shortcake/shortcake-bakery/pulls/157/commits"},"statuses":{"href":"https://api.github.com/repos/wp-shortcake/shortcake-bakery/statuses/1cb072353bf7fd3fc17118ace53299291297685c"}}}}