{"action":"opened","number":4044,"pull_request":{"url":"https://api.github.com/repos/Automattic/jetpack/pulls/4044","id":72266805,"html_url":"https://github.com/Automattic/jetpack/pull/4044","diff_url":"https://github.com/Automattic/jetpack/pull/4044.diff","patch_url":"https://github.com/Automattic/jetpack/pull/4044.patch","issue_url":"https://api.github.com/repos/Automattic/jetpack/issues/4044","number":4044,"state":"open","locked":false,"title":"VideoPress: Enqueue dependent media scripts","user":{"login":"iandunn","id":484068,"avatar_url":"https://avatars.githubusercontent.com/u/484068?v=3","gravatar_id":"","url":"https://api.github.com/users/iandunn","html_url":"https://github.com/iandunn","followers_url":"https://api.github.com/users/iandunn/followers","following_url":"https://api.github.com/users/iandunn/following{/other_user}","gists_url":"https://api.github.com/users/iandunn/gists{/gist_id}","starred_url":"https://api.github.com/users/iandunn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iandunn/subscriptions","organizations_url":"https://api.github.com/users/iandunn/orgs","repos_url":"https://api.github.com/users/iandunn/repos","events_url":"https://api.github.com/users/iandunn/events{/privacy}","received_events_url":"https://api.github.com/users/iandunn/received_events","type":"User","site_admin":false},"body":"`editor-view.js` is dependent on `wp.mce.views`, `wp.media`, etc. Those are already enqueued by Core for the `post` and `page` post types, but not always for custom post types.\r\n\r\nFor those custom post types, enqueueing `editor-view.js` without the dependent scripts results in errors being logged to the browser console. For example, `TypeError: wp.mce.views is undefined`.","created_at":"2016-06-01T23:07:15Z","updated_at":"2016-06-01T23:07:15Z","closed_at":null,"merged_at":null,"merge_commit_sha":"cacd3be14f7f676391459b0f69d8c92984cbf3a5","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Automattic/jetpack/pulls/4044/commits","review_comments_url":"https://api.github.com/repos/Automattic/jetpack/pulls/4044/comments","review_comment_url":"https://api.github.com/repos/Automattic/jetpack/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Automattic/jetpack/issues/4044/comments","statuses_url":"https://api.github.com/repos/Automattic/jetpack/statuses/bc86afb373ba96f414d352bca98dc4328c370058","head":{"label":"iandunn:vp-shortcode-js-deps","ref":"vp-shortcode-js-deps","sha":"bc86afb373ba96f414d352bca98dc4328c370058","user":{"login":"iandunn","id":484068,"avatar_url":"https://avatars.githubusercontent.com/u/484068?v=3","gravatar_id":"","url":"https://api.github.com/users/iandunn","html_url":"https://github.com/iandunn","followers_url":"https://api.github.com/users/iandunn/followers","following_url":"https://api.github.com/users/iandunn/following{/other_user}","gists_url":"https://api.github.com/users/iandunn/gists{/gist_id}","starred_url":"https://api.github.com/users/iandunn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iandunn/subscriptions","organizations_url":"https://api.github.com/users/iandunn/orgs","repos_url":"https://api.github.com/users/iandunn/repos","events_url":"https://api.github.com/users/iandunn/events{/privacy}","received_events_url":"https://api.github.com/users/iandunn/received_events","type":"User","site_admin":false},"repo":{"id":20070876,"name":"jetpack","full_name":"iandunn/jetpack","owner":{"login":"iandunn","id":484068,"avatar_url":"https://avatars.githubusercontent.com/u/484068?v=3","gravatar_id":"","url":"https://api.github.com/users/iandunn","html_url":"https://github.com/iandunn","followers_url":"https://api.github.com/users/iandunn/followers","following_url":"https://api.github.com/users/iandunn/following{/other_user}","gists_url":"https://api.github.com/users/iandunn/gists{/gist_id}","starred_url":"https://api.github.com/users/iandunn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iandunn/subscriptions","organizations_url":"https://api.github.com/users/iandunn/orgs","repos_url":"https://api.github.com/users/iandunn/repos","events_url":"https://api.github.com/users/iandunn/events{/privacy}","received_events_url":"https://api.github.com/users/iandunn/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/iandunn/jetpack","description":"Jetpack supercharges your self‑hosted WordPress site with the awesome cloud power of WordPress.com.","fork":true,"url":"https://api.github.com/repos/iandunn/jetpack","forks_url":"https://api.github.com/repos/iandunn/jetpack/forks","keys_url":"https://api.github.com/repos/iandunn/jetpack/keys{/key_id}","collaborators_url":"https://api.github.com/repos/iandunn/jetpack/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/iandunn/jetpack/teams","hooks_url":"https://api.github.com/repos/iandunn/jetpack/hooks","issue_events_url":"https://api.github.com/repos/iandunn/jetpack/issues/events{/number}","events_url":"https://api.github.com/repos/iandunn/jetpack/events","assignees_url":"https://api.github.com/repos/iandunn/jetpack/assignees{/user}","branches_url":"https://api.github.com/repos/iandunn/jetpack/branches{/branch}","tags_url":"https://api.github.com/repos/iandunn/jetpack/tags","blobs_url":"https://api.github.com/repos/iandunn/jetpack/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/iandunn/jetpack/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/iandunn/jetpack/git/refs{/sha}","trees_url":"https://api.github.com/repos/iandunn/jetpack/git/trees{/sha}","statuses_url":"https://api.github.com/repos/iandunn/jetpack/statuses/{sha}","languages_url":"https://api.github.com/repos/iandunn/jetpack/languages","stargazers_url":"https://api.github.com/repos/iandunn/jetpack/stargazers","contributors_url":"https://api.github.com/repos/iandunn/jetpack/contributors","subscribers_url":"https://api.github.com/repos/iandunn/jetpack/subscribers","subscription_url":"https://api.github.com/repos/iandunn/jetpack/subscription","commits_url":"https://api.github.com/repos/iandunn/jetpack/commits{/sha}","git_commits_url":"https://api.github.com/repos/iandunn/jetpack/git/commits{/sha}","comments_url":"https://api.github.com/repos/iandunn/jetpack/comments{/number}","issue_comment_url":"https://api.github.com/repos/iandunn/jetpack/issues/comments{/number}","contents_url":"https://api.github.com/repos/iandunn/jetpack/contents/{+path}","compare_url":"https://api.github.com/repos/iandunn/jetpack/compare/{base}...{head}","merges_url":"https://api.github.com/repos/iandunn/jetpack/merges","archive_url":"https://api.github.com/repos/iandunn/jetpack/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/iandunn/jetpack/downloads","issues_url":"https://api.github.com/repos/iandunn/jetpack/issues{/number}","pulls_url":"https://api.github.com/repos/iandunn/jetpack/pulls{/number}","milestones_url":"https://api.github.com/repos/iandunn/jetpack/milestones{/number}","notifications_url":"https://api.github.com/repos/iandunn/jetpack/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/iandunn/jetpack/labels{/name}","releases_url":"https://api.github.com/repos/iandunn/jetpack/releases{/id}","deployments_url":"https://api.github.com/repos/iandunn/jetpack/deployments","created_at":"2014-05-22T17:46:04Z","updated_at":"2016-06-01T22:19:55Z","pushed_at":"2016-06-01T23:00:52Z","git_url":"git://github.com/iandunn/jetpack.git","ssh_url":"git@github.com:iandunn/jetpack.git","clone_url":"https://github.com/iandunn/jetpack.git","svn_url":"https://github.com/iandunn/jetpack","homepage":"http://jetpack.me","size":76958,"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":"f7cbacf7b3f744ee25f10e19127593af5f5d9a2b","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":"Increase your traffic, view your stats, speed up your site, and protect yourself from hackers with Jetpack.","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}","deployments_url":"https://api.github.com/repos/Automattic/jetpack/deployments","created_at":"2013-12-16T16:43:01Z","updated_at":"2016-06-01T22:29:24Z","pushed_at":"2016-06-01T23:07:15Z","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.com","size":282548,"stargazers_count":528,"watchers_count":528,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":322,"mirror_url":null,"open_issues_count":772,"forks":322,"open_issues":772,"watchers":528,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Automattic/jetpack/pulls/4044"},"html":{"href":"https://github.com/Automattic/jetpack/pull/4044"},"issue":{"href":"https://api.github.com/repos/Automattic/jetpack/issues/4044"},"comments":{"href":"https://api.github.com/repos/Automattic/jetpack/issues/4044/comments"},"review_comments":{"href":"https://api.github.com/repos/Automattic/jetpack/pulls/4044/comments"},"review_comment":{"href":"https://api.github.com/repos/Automattic/jetpack/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Automattic/jetpack/pulls/4044/commits"},"statuses":{"href":"https://api.github.com/repos/Automattic/jetpack/statuses/bc86afb373ba96f414d352bca98dc4328c370058"}},"merged":false,"mergeable":true,"mergeable_state":"clean","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":2,"deletions":0,"changed_files":1}}
{"actor":{"display_login":"iandunn"}}