{"action":"opened","number":21,"pull_request":{"url":"https://api.github.com/repos/OnTheGoSystems/wpml-page-builders-gutenberg/pulls/21","id":232437121,"node_id":"MDExOlB1bGxSZXF1ZXN0MjMyNDM3MTIx","html_url":"https://github.com/OnTheGoSystems/wpml-page-builders-gutenberg/pull/21","diff_url":"https://github.com/OnTheGoSystems/wpml-page-builders-gutenberg/pull/21.diff","patch_url":"https://github.com/OnTheGoSystems/wpml-page-builders-gutenberg/pull/21.patch","issue_url":"https://api.github.com/repos/OnTheGoSystems/wpml-page-builders-gutenberg/issues/21","number":21,"state":"open","locked":false,"title":"Support block parsing for classic blocks","user":{"login":"strategio","id":1941656,"node_id":"MDQ6VXNlcjE5NDE2NTY=","avatar_url":"https://avatars2.githubusercontent.com/u/1941656?v=4","gravatar_id":"","url":"https://api.github.com/users/strategio","html_url":"https://github.com/strategio","followers_url":"https://api.github.com/users/strategio/followers","following_url":"https://api.github.com/users/strategio/following{/other_user}","gists_url":"https://api.github.com/users/strategio/gists{/gist_id}","starred_url":"https://api.github.com/users/strategio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/strategio/subscriptions","organizations_url":"https://api.github.com/users/strategio/orgs","repos_url":"https://api.github.com/users/strategio/repos","events_url":"https://api.github.com/users/strategio/events{/privacy}","received_events_url":"https://api.github.com/users/strategio/received_events","type":"User","site_admin":false},"body":"Classic blocks are not wrapped with the usual `<!-- wp:block -->`\r\ncomments. But it's parsed by WP (in `parse_blocks`) which returns a block\r\nwithout name.\r\n\r\nIn order to also process those classic blocks in the translation editor,\r\nwe will temporarily give it a name so it can be handled as any other\r\nblock.\r\n\r\nAt rendering time, we will process it as a raw HTML and apply `wpautop`\r\nas it depends on if it was translated with the visual tab or text tab (note that it can only be edited with the visual in the block editor).\r\n\r\nUnfortunately, I could not add test because the `WP_Block_Parser_Block`\r\nclass is hardcoded inside our code.\r\n\r\nhttps://onthegosystems.myjetbrains.com/youtrack/issue/wpmlcore-6075","created_at":"2018-11-20T19:41:07Z","updated_at":"2018-11-20T19:41:07Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/OnTheGoSystems/wpml-page-builders-gutenberg/pulls/21/commits","review_comments_url":"https://api.github.com/repos/OnTheGoSystems/wpml-page-builders-gutenberg/pulls/21/comments","review_comment_url":"https://api.github.com/repos/OnTheGoSystems/wpml-page-builders-gutenberg/pulls/comments{/number}","comments_url":"https://api.github.com/repos/OnTheGoSystems/wpml-page-builders-gutenberg/issues/21/comments","statuses_url":"https://api.github.com/repos/OnTheGoSystems/wpml-page-builders-gutenberg/statuses/8538099c84d4a608e01bdd1777ff48bd013fd208","head":{"label":"OnTheGoSystems:wpmlcore-6075","ref":"wpmlcore-6075","sha":"8538099c84d4a608e01bdd1777ff48bd013fd208","user":{"login":"OnTheGoSystems","id":16096345,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE2MDk2MzQ1","avatar_url":"https://avatars3.githubusercontent.com/u/16096345?v=4","gravatar_id":"","url":"https://api.github.com/users/OnTheGoSystems","html_url":"https://github.com/OnTheGoSystems","followers_url":"https://api.github.com/users/OnTheGoSystems/followers","following_url":"https://api.github.com/users/OnTheGoSystems/following{/other_user}","gists_url":"https://api.github.com/users/OnTheGoSystems/gists{/gist_id}","starred_url":"https://api.github.com/users/OnTheGoSystems/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OnTheGoSystems/subscriptions","organizations_url":"https://api.github.com/users/OnTheGoSystems/orgs","repos_url":"https://api.github.com/users/OnTheGoSystems/repos","events_url":"https://api.github.com/users/OnTheGoSystems/events{/privacy}","received_events_url":"https://api.github.com/users/OnTheGoSystems/received_events","type":"Organization","site_admin":false},"repo":{"id":142103280,"node_id":"MDEwOlJlcG9zaXRvcnkxNDIxMDMyODA=","name":"wpml-page-builders-gutenberg","full_name":"OnTheGoSystems/wpml-page-builders-gutenberg","private":false,"owner":{"login":"OnTheGoSystems","id":16096345,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE2MDk2MzQ1","avatar_url":"https://avatars3.githubusercontent.com/u/16096345?v=4","gravatar_id":"","url":"https://api.github.com/users/OnTheGoSystems","html_url":"https://github.com/OnTheGoSystems","followers_url":"https://api.github.com/users/OnTheGoSystems/followers","following_url":"https://api.github.com/users/OnTheGoSystems/following{/other_user}","gists_url":"https://api.github.com/users/OnTheGoSystems/gists{/gist_id}","starred_url":"https://api.github.com/users/OnTheGoSystems/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OnTheGoSystems/subscriptions","organizations_url":"https://api.github.com/users/OnTheGoSystems/orgs","repos_url":"https://api.github.com/users/OnTheGoSystems/repos","events_url":"https://api.github.com/users/OnTheGoSystems/events{/privacy}","received_events_url":"https://api.github.com/users/OnTheGoSystems/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/OnTheGoSystems/wpml-page-builders-gutenberg","description":"Add translation support for Gutenberg","fork":false,"url":"https://api.github.com/repos/OnTheGoSystems/wpml-page-builders-gutenberg","forks_url":"https://api.github.com/repos/OnTheGoSystems/wpml-page-builders-gutenberg/forks","keys_url":"https://api.github.com/repos/OnTheGoSystems/wpml-page-builders-gutenberg/keys{/key_id}","collaborators_url":"https://api.github.com/repos/OnTheGoSystems/wpml-page-builders-gutenberg/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/OnTheGoSystems/wpml-page-builders-gutenberg/teams","hooks_url":"https://api.github.com/repos/OnTheGoSystems/wpml-page-builders-gutenberg/hooks","issue_events_url":"https://api.github.com/repos/OnTheGoSystems/wpml-page-builders-gutenberg/issues/events{/number}","events_url":"https://api.github.com/repos/OnTheGoSystems/wpml-page-builders-gutenberg/events","assignees_url":"https://api.github.com/repos/OnTheGoSystems/wpml-page-builders-gutenberg/assignees{/user}","branches_url":"https://api.github.com/repos/OnTheGoSystems/wpml-page-builders-gutenberg/branches{/branch}","tags_url":"https://api.github.com/repos/OnTheGoSystems/wpml-page-builders-gutenberg/tags","blobs_url":"https://api.github.com/repos/OnTheGoSystems/wpml-page-builders-gutenberg/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/OnTheGoSystems/wpml-page-builders-gutenberg/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/OnTheGoSystems/wpml-page-builders-gutenberg/git/refs{/sha}","trees_url":"https://api.github.com/repos/OnTheGoSystems/wpml-page-builders-gutenberg/git/trees{/sha}","statuses_url":"https://api.github.com/repos/OnTheGoSystems/wpml-page-builders-gutenberg/statuses/{sha}","languages_url":"https://api.github.com/repos/OnTheGoSystems/wpml-page-builders-gutenberg/languages","stargazers_url":"https://api.github.com/repos/OnTheGoSystems/wpml-page-builders-gutenberg/stargazers","contributors_url":"https://api.github.com/repos/OnTheGoSystems/wpml-page-builders-gutenberg/contributors","subscribers_url":"https://api.github.com/repos/OnTheGoSystems/wpml-page-builders-gutenberg/subscribers","subscription_url":"https://api.github.com/repos/OnTheGoSystems/wpml-page-builders-gutenberg/subscription","commits_url":"https://api.github.com/repos/OnTheGoSystems/wpml-page-builders-gutenberg/commits{/sha}","git_commits_url":"https://api.github.com/repos/OnTheGoSystems/wpml-page-builders-gutenberg/git/commits{/sha}","comments_url":"https://api.github.com/repos/OnTheGoSystems/wpml-page-builders-gutenberg/comments{/number}","issue_comment_url":"https://api.github.com/repos/OnTheGoSystems/wpml-page-builders-gutenberg/issues/comments{/number}","contents_url":"https://api.github.com/repos/OnTheGoSystems/wpml-page-builders-gutenberg/contents/{+path}","compare_url":"https://api.github.com/repos/OnTheGoSystems/wpml-page-builders-gutenberg/compare/{base}...{head}","merges_url":"https://api.github.com/repos/OnTheGoSystems/wpml-page-builders-gutenberg/merges","archive_url":"https://api.github.com/repos/OnTheGoSystems/wpml-page-builders-gutenberg/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/OnTheGoSystems/wpml-page-builders-gutenberg/downloads","issues_url":"https://api.github.com/repos/OnTheGoSystems/wpml-page-builders-gutenberg/issues{/number}","pulls_url":"https://api.github.com/repos/OnTheGoSystems/wpml-page-builders-gutenberg/pulls{/number}","milestones_url":"https://api.github.com/repos/OnTheGoSystems/wpml-page-builders-gutenberg/milestones{/number}","notifications_url":"https://api.github.com/repos/OnTheGoSystems/wpml-page-builders-gutenberg/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/OnTheGoSystems/wpml-page-builders-gutenberg/labels{/name}","releases_url":"https://api.github.com/repos/OnTheGoSystems/wpml-page-builders-gutenberg/releases{/id}","deployments_url":"https://api.github.com/repos/OnTheGoSystems/wpml-page-builders-gutenberg/deployments","created_at":"2018-07-24T04:15:24Z","updated_at":"2018-07-24T11:11:02Z","pushed_at":"2018-11-20T19:23:15Z","git_url":"git://github.com/OnTheGoSystems/wpml-page-builders-gutenberg.git","ssh_url":"git@github.com:OnTheGoSystems/wpml-page-builders-gutenberg.git","clone_url":"https://github.com/OnTheGoSystems/wpml-page-builders-gutenberg.git","svn_url":"https://github.com/OnTheGoSystems/wpml-page-builders-gutenberg","homepage":null,"size":42,"stargazers_count":1,"watchers_count":1,"language":null,"has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":2,"license":null,"forks":0,"open_issues":2,"watchers":1,"default_branch":"master"}},"base":{"label":"OnTheGoSystems:wpmlcore-6070","ref":"wpmlcore-6070","sha":"3986c32e2c6feb8cd630e62163d66f4535d8212e","user":{"login":"OnTheGoSystems","id":16096345,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE2MDk2MzQ1","avatar_url":"https://avatars3.githubusercontent.com/u/16096345?v=4","gravatar_id":"","url":"https://api.github.com/users/OnTheGoSystems","html_url":"https://github.com/OnTheGoSystems","followers_url":"https://api.github.com/users/OnTheGoSystems/followers","following_url":"https://api.github.com/users/OnTheGoSystems/following{/other_user}","gists_url":"https://api.github.com/users/OnTheGoSystems/gists{/gist_id}","starred_url":"https://api.github.com/users/OnTheGoSystems/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OnTheGoSystems/subscriptions","organizations_url":"https://api.github.com/users/OnTheGoSystems/orgs","repos_url":"https://api.github.com/users/OnTheGoSystems/repos","events_url":"https://api.github.com/users/OnTheGoSystems/events{/privacy}","received_events_url":"https://api.github.com/users/OnTheGoSystems/received_events","type":"Organization","site_admin":false},"repo":{"id":142103280,"node_id":"MDEwOlJlcG9zaXRvcnkxNDIxMDMyODA=","name":"wpml-page-builders-gutenberg","full_name":"OnTheGoSystems/wpml-page-builders-gutenberg","private":false,"owner":{"login":"OnTheGoSystems","id":16096345,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE2MDk2MzQ1","avatar_url":"https://avatars3.githubusercontent.com/u/16096345?v=4","gravatar_id":"","url":"https://api.github.com/users/OnTheGoSystems","html_url":"https://github.com/OnTheGoSystems","followers_url":"https://api.github.com/users/OnTheGoSystems/followers","following_url":"https://api.github.com/users/OnTheGoSystems/following{/other_user}","gists_url":"https://api.github.com/users/OnTheGoSystems/gists{/gist_id}","starred_url":"https://api.github.com/users/OnTheGoSystems/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OnTheGoSystems/subscriptions","organizations_url":"https://api.github.com/users/OnTheGoSystems/orgs","repos_url":"https://api.github.com/users/OnTheGoSystems/repos","events_url":"https://api.github.com/users/OnTheGoSystems/events{/privacy}","received_events_url":"https://api.github.com/users/OnTheGoSystems/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/OnTheGoSystems/wpml-page-builders-gutenberg","description":"Add translation support for Gutenberg","fork":false,"url":"https://api.github.com/repos/OnTheGoSystems/wpml-page-builders-gutenberg","forks_url":"https://api.github.com/repos/OnTheGoSystems/wpml-page-builders-gutenberg/forks","keys_url":"https://api.github.com/repos/OnTheGoSystems/wpml-page-builders-gutenberg/keys{/key_id}","collaborators_url":"https://api.github.com/repos/OnTheGoSystems/wpml-page-builders-gutenberg/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/OnTheGoSystems/wpml-page-builders-gutenberg/teams","hooks_url":"https://api.github.com/repos/OnTheGoSystems/wpml-page-builders-gutenberg/hooks","issue_events_url":"https://api.github.com/repos/OnTheGoSystems/wpml-page-builders-gutenberg/issues/events{/number}","events_url":"https://api.github.com/repos/OnTheGoSystems/wpml-page-builders-gutenberg/events","assignees_url":"https://api.github.com/repos/OnTheGoSystems/wpml-page-builders-gutenberg/assignees{/user}","branches_url":"https://api.github.com/repos/OnTheGoSystems/wpml-page-builders-gutenberg/branches{/branch}","tags_url":"https://api.github.com/repos/OnTheGoSystems/wpml-page-builders-gutenberg/tags","blobs_url":"https://api.github.com/repos/OnTheGoSystems/wpml-page-builders-gutenberg/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/OnTheGoSystems/wpml-page-builders-gutenberg/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/OnTheGoSystems/wpml-page-builders-gutenberg/git/refs{/sha}","trees_url":"https://api.github.com/repos/OnTheGoSystems/wpml-page-builders-gutenberg/git/trees{/sha}","statuses_url":"https://api.github.com/repos/OnTheGoSystems/wpml-page-builders-gutenberg/statuses/{sha}","languages_url":"https://api.github.com/repos/OnTheGoSystems/wpml-page-builders-gutenberg/languages","stargazers_url":"https://api.github.com/repos/OnTheGoSystems/wpml-page-builders-gutenberg/stargazers","contributors_url":"https://api.github.com/repos/OnTheGoSystems/wpml-page-builders-gutenberg/contributors","subscribers_url":"https://api.github.com/repos/OnTheGoSystems/wpml-page-builders-gutenberg/subscribers","subscription_url":"https://api.github.com/repos/OnTheGoSystems/wpml-page-builders-gutenberg/subscription","commits_url":"https://api.github.com/repos/OnTheGoSystems/wpml-page-builders-gutenberg/commits{/sha}","git_commits_url":"https://api.github.com/repos/OnTheGoSystems/wpml-page-builders-gutenberg/git/commits{/sha}","comments_url":"https://api.github.com/repos/OnTheGoSystems/wpml-page-builders-gutenberg/comments{/number}","issue_comment_url":"https://api.github.com/repos/OnTheGoSystems/wpml-page-builders-gutenberg/issues/comments{/number}","contents_url":"https://api.github.com/repos/OnTheGoSystems/wpml-page-builders-gutenberg/contents/{+path}","compare_url":"https://api.github.com/repos/OnTheGoSystems/wpml-page-builders-gutenberg/compare/{base}...{head}","merges_url":"https://api.github.com/repos/OnTheGoSystems/wpml-page-builders-gutenberg/merges","archive_url":"https://api.github.com/repos/OnTheGoSystems/wpml-page-builders-gutenberg/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/OnTheGoSystems/wpml-page-builders-gutenberg/downloads","issues_url":"https://api.github.com/repos/OnTheGoSystems/wpml-page-builders-gutenberg/issues{/number}","pulls_url":"https://api.github.com/repos/OnTheGoSystems/wpml-page-builders-gutenberg/pulls{/number}","milestones_url":"https://api.github.com/repos/OnTheGoSystems/wpml-page-builders-gutenberg/milestones{/number}","notifications_url":"https://api.github.com/repos/OnTheGoSystems/wpml-page-builders-gutenberg/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/OnTheGoSystems/wpml-page-builders-gutenberg/labels{/name}","releases_url":"https://api.github.com/repos/OnTheGoSystems/wpml-page-builders-gutenberg/releases{/id}","deployments_url":"https://api.github.com/repos/OnTheGoSystems/wpml-page-builders-gutenberg/deployments","created_at":"2018-07-24T04:15:24Z","updated_at":"2018-07-24T11:11:02Z","pushed_at":"2018-11-20T19:23:15Z","git_url":"git://github.com/OnTheGoSystems/wpml-page-builders-gutenberg.git","ssh_url":"git@github.com:OnTheGoSystems/wpml-page-builders-gutenberg.git","clone_url":"https://github.com/OnTheGoSystems/wpml-page-builders-gutenberg.git","svn_url":"https://github.com/OnTheGoSystems/wpml-page-builders-gutenberg","homepage":null,"size":42,"stargazers_count":1,"watchers_count":1,"language":null,"has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":2,"license":null,"forks":0,"open_issues":2,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/OnTheGoSystems/wpml-page-builders-gutenberg/pulls/21"},"html":{"href":"https://github.com/OnTheGoSystems/wpml-page-builders-gutenberg/pull/21"},"issue":{"href":"https://api.github.com/repos/OnTheGoSystems/wpml-page-builders-gutenberg/issues/21"},"comments":{"href":"https://api.github.com/repos/OnTheGoSystems/wpml-page-builders-gutenberg/issues/21/comments"},"review_comments":{"href":"https://api.github.com/repos/OnTheGoSystems/wpml-page-builders-gutenberg/pulls/21/comments"},"review_comment":{"href":"https://api.github.com/repos/OnTheGoSystems/wpml-page-builders-gutenberg/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/OnTheGoSystems/wpml-page-builders-gutenberg/pulls/21/commits"},"statuses":{"href":"https://api.github.com/repos/OnTheGoSystems/wpml-page-builders-gutenberg/statuses/8538099c84d4a608e01bdd1777ff48bd013fd208"}},"author_association":"MEMBER","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":false,"commits":1,"additions":47,"deletions":42,"changed_files":1}}
{"actor":{"display_login":"strategio"}}