{"action":"created","comment":{"url":"https://api.github.com/repos/WordPress/gutenberg/pulls/comments/223131741","pull_request_review_id":162194712,"id":223131741,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIyMzEzMTc0MQ==","diff_hunk":"@@ -6,6 +6,8 @@ Gutenberg's deprecation policy is intended to support backwards-compatibility fo\n - `wp.components.Draggable` as a DOM node drag handler has been removed. Please, use `wp.components.Draggable` as a wrap component for your DOM node drag handler.\n - `wp.i18n.getI18n` has been removed. Use `__`, `_x`, `_n`, or `_nx` instead.\n - `wp.i18n.dcnpgettext` has been removed. Use `__`, `_x`, `_n`, or `_nx` instead.\n+- `wp.blocks.setUnknownTypeHandlerName` has been removed. Please use `setFreeformContentHandlerName` and `setUnregisteredTypeHandlerName` instead.\n+- `wp.blocks.getUnknownTypeHandlerName` has been removed. Please use `getFreeformContentHandlerName` and `getUnregisteredTypeHandlerName` instead.","path":"docs/reference/deprecated.md","position":5,"original_position":5,"commit_id":"0064e214bf13dc31294637510134d3167bfd6a05","original_commit_id":"0064e214bf13dc31294637510134d3167bfd6a05","user":{"login":"brandonpayton","id":530877,"node_id":"MDQ6VXNlcjUzMDg3Nw==","avatar_url":"https://avatars1.githubusercontent.com/u/530877?v=4","gravatar_id":"","url":"https://api.github.com/users/brandonpayton","html_url":"https://github.com/brandonpayton","followers_url":"https://api.github.com/users/brandonpayton/followers","following_url":"https://api.github.com/users/brandonpayton/following{/other_user}","gists_url":"https://api.github.com/users/brandonpayton/gists{/gist_id}","starred_url":"https://api.github.com/users/brandonpayton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brandonpayton/subscriptions","organizations_url":"https://api.github.com/users/brandonpayton/orgs","repos_url":"https://api.github.com/users/brandonpayton/repos","events_url":"https://api.github.com/users/brandonpayton/events{/privacy}","received_events_url":"https://api.github.com/users/brandonpayton/received_events","type":"User","site_admin":false},"body":"From [another comment]():\r\n> Both in this file and in `store/*`, can't we simply treat the deprecated `*UnknownType*` functions as aliases for their `*FreeformContent*` counterparts? If I read the diff correctly, one deprecated function keeps calling a deprecated action creator, which keeps outputting an action of deprecated type.\r\n\r\nIt seems like it might be better to just stick with `setUnknownTypeHandlerName` since the function isn't often used. An \"unknown\" type might be distinct enough from an \"unregistered\" type to leave as-is, but I am happy to use an alias if you prefer.","created_at":"2018-10-05T20:34:41Z","updated_at":"2018-10-05T20:34:41Z","html_url":"https://github.com/WordPress/gutenberg/pull/8274#discussion_r223131741","pull_request_url":"https://api.github.com/repos/WordPress/gutenberg/pulls/8274","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/WordPress/gutenberg/pulls/comments/223131741"},"html":{"href":"https://github.com/WordPress/gutenberg/pull/8274#discussion_r223131741"},"pull_request":{"href":"https://api.github.com/repos/WordPress/gutenberg/pulls/8274"}},"in_reply_to_id":221012548},"pull_request":{"url":"https://api.github.com/repos/WordPress/gutenberg/pulls/8274","id":204670686,"node_id":"MDExOlB1bGxSZXF1ZXN0MjA0NjcwNjg2","html_url":"https://github.com/WordPress/gutenberg/pull/8274","diff_url":"https://github.com/WordPress/gutenberg/pull/8274.diff","patch_url":"https://github.com/WordPress/gutenberg/pull/8274.patch","issue_url":"https://api.github.com/repos/WordPress/gutenberg/issues/8274","number":8274,"state":"open","locked":false,"title":"Add UI for unregistered block types","user":{"login":"brandonpayton","id":530877,"node_id":"MDQ6VXNlcjUzMDg3Nw==","avatar_url":"https://avatars1.githubusercontent.com/u/530877?v=4","gravatar_id":"","url":"https://api.github.com/users/brandonpayton","html_url":"https://github.com/brandonpayton","followers_url":"https://api.github.com/users/brandonpayton/followers","following_url":"https://api.github.com/users/brandonpayton/following{/other_user}","gists_url":"https://api.github.com/users/brandonpayton/gists{/gist_id}","starred_url":"https://api.github.com/users/brandonpayton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brandonpayton/subscriptions","organizations_url":"https://api.github.com/users/brandonpayton/orgs","repos_url":"https://api.github.com/users/brandonpayton/repos","events_url":"https://api.github.com/users/brandonpayton/events{/privacy}","received_events_url":"https://api.github.com/users/brandonpayton/received_events","type":"User","site_admin":false},"body":"## Description\r\nThis PR adds UX for unregistered block types found in the post content.\r\n\r\nA notice is shown in the place of each unregistered block type, offering the ability to remove the block or leave its content intact. If the core Custom HTML block is present and the unregistered block has HTML content, the notice also offers the opportunity to keep the block HTML as a Custom HTML block.\r\n\r\n⚠️ Child blocks are not preserved. This is consistent with today's fallback behavior. Parsed blocks do not yet contain information about where their child blocks were found, so it is not possible to reconstitute child blocks within an unregistered parent. This is important to fix but should probably be done after a separate PR that updates the parser to provide such information. See #8214 for what appears to be a related issue.   \r\n\r\nContributes to #7811.\r\n\r\n## How has this been tested?\r\n\r\nUnit tests. It has also been manually tested by:\r\n\r\n1. Creating custom block types.\r\n2. Removing those types and reloading to observe missing block warnings.\r\n3. Changing other content, saving, re-enabling the custom block types, and reloading to observe the original block content was preserved and loaded correctly again.\r\n\r\n## Screenshots <!-- if applicable -->\r\n<img width=\"969\" alt=\"screen shot 2018-09-06 at 10 26 43 am\" src=\"https://user-images.githubusercontent.com/530877/45191941-aac86400-b1fa-11e8-9716-338872c34e82.png\">\r\n\r\n## Types of changes\r\n\r\nToday, we have an \"unknown fallback\" that handles both non-block content and unregistered block types. This PR splits the fallback in two, a freeform content fallback and an unregistered type fallback, and deprecates the \"unknown fallback\".\r\n\r\nIn discussion with @karmatosed, we want the unregistered block fallback to appear more like a warning than a block, so we hide its block outline and override its block sidebar to appear as if no block is selected.","created_at":"2018-07-30T00:37:18Z","updated_at":"2018-10-05T20:34:41Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a30fdb8b935c2c7e5cd0fd257265a6f7d9dc69f9","assignee":null,"assignees":[],"requested_reviewers":[{"login":"youknowriad","id":272444,"node_id":"MDQ6VXNlcjI3MjQ0NA==","avatar_url":"https://avatars3.githubusercontent.com/u/272444?v=4","gravatar_id":"","url":"https://api.github.com/users/youknowriad","html_url":"https://github.com/youknowriad","followers_url":"https://api.github.com/users/youknowriad/followers","following_url":"https://api.github.com/users/youknowriad/following{/other_user}","gists_url":"https://api.github.com/users/youknowriad/gists{/gist_id}","starred_url":"https://api.github.com/users/youknowriad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/youknowriad/subscriptions","organizations_url":"https://api.github.com/users/youknowriad/orgs","repos_url":"https://api.github.com/users/youknowriad/repos","events_url":"https://api.github.com/users/youknowriad/events{/privacy}","received_events_url":"https://api.github.com/users/youknowriad/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[{"id":546156315,"node_id":"MDU6TGFiZWw1NDYxNTYzMTU=","url":"https://api.github.com/repos/WordPress/gutenberg/labels/Block%20API","name":"Block API","color":"fbca04","default":false},{"id":570263070,"node_id":"MDU6TGFiZWw1NzAyNjMwNzA=","url":"https://api.github.com/repos/WordPress/gutenberg/labels/Blocks","name":"Blocks","color":"fbca04","default":false},{"id":644027893,"node_id":"MDU6TGFiZWw2NDQwMjc4OTM=","url":"https://api.github.com/repos/WordPress/gutenberg/labels/Needs%20Design%20Feedback","name":"Needs Design Feedback","color":"0e8a16","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/WordPress/gutenberg/pulls/8274/commits","review_comments_url":"https://api.github.com/repos/WordPress/gutenberg/pulls/8274/comments","review_comment_url":"https://api.github.com/repos/WordPress/gutenberg/pulls/comments{/number}","comments_url":"https://api.github.com/repos/WordPress/gutenberg/issues/8274/comments","statuses_url":"https://api.github.com/repos/WordPress/gutenberg/statuses/0064e214bf13dc31294637510134d3167bfd6a05","head":{"label":"WordPress:add/ui-for-missing-blocks-2","ref":"add/ui-for-missing-blocks-2","sha":"0064e214bf13dc31294637510134d3167bfd6a05","user":{"login":"WordPress","id":276006,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI3NjAwNg==","avatar_url":"https://avatars0.githubusercontent.com/u/276006?v=4","gravatar_id":"","url":"https://api.github.com/users/WordPress","html_url":"https://github.com/WordPress","followers_url":"https://api.github.com/users/WordPress/followers","following_url":"https://api.github.com/users/WordPress/following{/other_user}","gists_url":"https://api.github.com/users/WordPress/gists{/gist_id}","starred_url":"https://api.github.com/users/WordPress/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WordPress/subscriptions","organizations_url":"https://api.github.com/users/WordPress/orgs","repos_url":"https://api.github.com/users/WordPress/repos","events_url":"https://api.github.com/users/WordPress/events{/privacy}","received_events_url":"https://api.github.com/users/WordPress/received_events","type":"Organization","site_admin":false},"repo":{"id":80862584,"node_id":"MDEwOlJlcG9zaXRvcnk4MDg2MjU4NA==","name":"gutenberg","full_name":"WordPress/gutenberg","private":false,"owner":{"login":"WordPress","id":276006,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI3NjAwNg==","avatar_url":"https://avatars0.githubusercontent.com/u/276006?v=4","gravatar_id":"","url":"https://api.github.com/users/WordPress","html_url":"https://github.com/WordPress","followers_url":"https://api.github.com/users/WordPress/followers","following_url":"https://api.github.com/users/WordPress/following{/other_user}","gists_url":"https://api.github.com/users/WordPress/gists{/gist_id}","starred_url":"https://api.github.com/users/WordPress/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WordPress/subscriptions","organizations_url":"https://api.github.com/users/WordPress/orgs","repos_url":"https://api.github.com/users/WordPress/repos","events_url":"https://api.github.com/users/WordPress/events{/privacy}","received_events_url":"https://api.github.com/users/WordPress/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/WordPress/gutenberg","description":"Printing since 1440. Development hub for the editor focus in core. Plugin is available from the official WordPress repository.","fork":false,"url":"https://api.github.com/repos/WordPress/gutenberg","forks_url":"https://api.github.com/repos/WordPress/gutenberg/forks","keys_url":"https://api.github.com/repos/WordPress/gutenberg/keys{/key_id}","collaborators_url":"https://api.github.com/repos/WordPress/gutenberg/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/WordPress/gutenberg/teams","hooks_url":"https://api.github.com/repos/WordPress/gutenberg/hooks","issue_events_url":"https://api.github.com/repos/WordPress/gutenberg/issues/events{/number}","events_url":"https://api.github.com/repos/WordPress/gutenberg/events","assignees_url":"https://api.github.com/repos/WordPress/gutenberg/assignees{/user}","branches_url":"https://api.github.com/repos/WordPress/gutenberg/branches{/branch}","tags_url":"https://api.github.com/repos/WordPress/gutenberg/tags","blobs_url":"https://api.github.com/repos/WordPress/gutenberg/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/WordPress/gutenberg/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/WordPress/gutenberg/git/refs{/sha}","trees_url":"https://api.github.com/repos/WordPress/gutenberg/git/trees{/sha}","statuses_url":"https://api.github.com/repos/WordPress/gutenberg/statuses/{sha}","languages_url":"https://api.github.com/repos/WordPress/gutenberg/languages","stargazers_url":"https://api.github.com/repos/WordPress/gutenberg/stargazers","contributors_url":"https://api.github.com/repos/WordPress/gutenberg/contributors","subscribers_url":"https://api.github.com/repos/WordPress/gutenberg/subscribers","subscription_url":"https://api.github.com/repos/WordPress/gutenberg/subscription","commits_url":"https://api.github.com/repos/WordPress/gutenberg/commits{/sha}","git_commits_url":"https://api.github.com/repos/WordPress/gutenberg/git/commits{/sha}","comments_url":"https://api.github.com/repos/WordPress/gutenberg/comments{/number}","issue_comment_url":"https://api.github.com/repos/WordPress/gutenberg/issues/comments{/number}","contents_url":"https://api.github.com/repos/WordPress/gutenberg/contents/{+path}","compare_url":"https://api.github.com/repos/WordPress/gutenberg/compare/{base}...{head}","merges_url":"https://api.github.com/repos/WordPress/gutenberg/merges","archive_url":"https://api.github.com/repos/WordPress/gutenberg/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/WordPress/gutenberg/downloads","issues_url":"https://api.github.com/repos/WordPress/gutenberg/issues{/number}","pulls_url":"https://api.github.com/repos/WordPress/gutenberg/pulls{/number}","milestones_url":"https://api.github.com/repos/WordPress/gutenberg/milestones{/number}","notifications_url":"https://api.github.com/repos/WordPress/gutenberg/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/WordPress/gutenberg/labels{/name}","releases_url":"https://api.github.com/repos/WordPress/gutenberg/releases{/id}","deployments_url":"https://api.github.com/repos/WordPress/gutenberg/deployments","created_at":"2017-02-03T19:34:19Z","updated_at":"2018-10-05T19:08:48Z","pushed_at":"2018-10-05T19:44:17Z","git_url":"git://github.com/WordPress/gutenberg.git","ssh_url":"git@github.com:WordPress/gutenberg.git","clone_url":"https://github.com/WordPress/gutenberg.git","svn_url":"https://github.com/WordPress/gutenberg","homepage":"https://wordpress.org/plugins/gutenberg/","size":24250,"stargazers_count":3491,"watchers_count":3491,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":942,"mirror_url":null,"archived":false,"open_issues_count":1459,"license":{"key":"other","name":"NOASSERTION","spdx_id":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":942,"open_issues":1459,"watchers":3491,"default_branch":"master"}},"base":{"label":"WordPress:master","ref":"master","sha":"9a6bf39797bac8968f146b49f61d8a96fb4ee3a9","user":{"login":"WordPress","id":276006,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI3NjAwNg==","avatar_url":"https://avatars0.githubusercontent.com/u/276006?v=4","gravatar_id":"","url":"https://api.github.com/users/WordPress","html_url":"https://github.com/WordPress","followers_url":"https://api.github.com/users/WordPress/followers","following_url":"https://api.github.com/users/WordPress/following{/other_user}","gists_url":"https://api.github.com/users/WordPress/gists{/gist_id}","starred_url":"https://api.github.com/users/WordPress/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WordPress/subscriptions","organizations_url":"https://api.github.com/users/WordPress/orgs","repos_url":"https://api.github.com/users/WordPress/repos","events_url":"https://api.github.com/users/WordPress/events{/privacy}","received_events_url":"https://api.github.com/users/WordPress/received_events","type":"Organization","site_admin":false},"repo":{"id":80862584,"node_id":"MDEwOlJlcG9zaXRvcnk4MDg2MjU4NA==","name":"gutenberg","full_name":"WordPress/gutenberg","private":false,"owner":{"login":"WordPress","id":276006,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI3NjAwNg==","avatar_url":"https://avatars0.githubusercontent.com/u/276006?v=4","gravatar_id":"","url":"https://api.github.com/users/WordPress","html_url":"https://github.com/WordPress","followers_url":"https://api.github.com/users/WordPress/followers","following_url":"https://api.github.com/users/WordPress/following{/other_user}","gists_url":"https://api.github.com/users/WordPress/gists{/gist_id}","starred_url":"https://api.github.com/users/WordPress/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WordPress/subscriptions","organizations_url":"https://api.github.com/users/WordPress/orgs","repos_url":"https://api.github.com/users/WordPress/repos","events_url":"https://api.github.com/users/WordPress/events{/privacy}","received_events_url":"https://api.github.com/users/WordPress/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/WordPress/gutenberg","description":"Printing since 1440. Development hub for the editor focus in core. Plugin is available from the official WordPress repository.","fork":false,"url":"https://api.github.com/repos/WordPress/gutenberg","forks_url":"https://api.github.com/repos/WordPress/gutenberg/forks","keys_url":"https://api.github.com/repos/WordPress/gutenberg/keys{/key_id}","collaborators_url":"https://api.github.com/repos/WordPress/gutenberg/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/WordPress/gutenberg/teams","hooks_url":"https://api.github.com/repos/WordPress/gutenberg/hooks","issue_events_url":"https://api.github.com/repos/WordPress/gutenberg/issues/events{/number}","events_url":"https://api.github.com/repos/WordPress/gutenberg/events","assignees_url":"https://api.github.com/repos/WordPress/gutenberg/assignees{/user}","branches_url":"https://api.github.com/repos/WordPress/gutenberg/branches{/branch}","tags_url":"https://api.github.com/repos/WordPress/gutenberg/tags","blobs_url":"https://api.github.com/repos/WordPress/gutenberg/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/WordPress/gutenberg/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/WordPress/gutenberg/git/refs{/sha}","trees_url":"https://api.github.com/repos/WordPress/gutenberg/git/trees{/sha}","statuses_url":"https://api.github.com/repos/WordPress/gutenberg/statuses/{sha}","languages_url":"https://api.github.com/repos/WordPress/gutenberg/languages","stargazers_url":"https://api.github.com/repos/WordPress/gutenberg/stargazers","contributors_url":"https://api.github.com/repos/WordPress/gutenberg/contributors","subscribers_url":"https://api.github.com/repos/WordPress/gutenberg/subscribers","subscription_url":"https://api.github.com/repos/WordPress/gutenberg/subscription","commits_url":"https://api.github.com/repos/WordPress/gutenberg/commits{/sha}","git_commits_url":"https://api.github.com/repos/WordPress/gutenberg/git/commits{/sha}","comments_url":"https://api.github.com/repos/WordPress/gutenberg/comments{/number}","issue_comment_url":"https://api.github.com/repos/WordPress/gutenberg/issues/comments{/number}","contents_url":"https://api.github.com/repos/WordPress/gutenberg/contents/{+path}","compare_url":"https://api.github.com/repos/WordPress/gutenberg/compare/{base}...{head}","merges_url":"https://api.github.com/repos/WordPress/gutenberg/merges","archive_url":"https://api.github.com/repos/WordPress/gutenberg/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/WordPress/gutenberg/downloads","issues_url":"https://api.github.com/repos/WordPress/gutenberg/issues{/number}","pulls_url":"https://api.github.com/repos/WordPress/gutenberg/pulls{/number}","milestones_url":"https://api.github.com/repos/WordPress/gutenberg/milestones{/number}","notifications_url":"https://api.github.com/repos/WordPress/gutenberg/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/WordPress/gutenberg/labels{/name}","releases_url":"https://api.github.com/repos/WordPress/gutenberg/releases{/id}","deployments_url":"https://api.github.com/repos/WordPress/gutenberg/deployments","created_at":"2017-02-03T19:34:19Z","updated_at":"2018-10-05T19:08:48Z","pushed_at":"2018-10-05T19:44:17Z","git_url":"git://github.com/WordPress/gutenberg.git","ssh_url":"git@github.com:WordPress/gutenberg.git","clone_url":"https://github.com/WordPress/gutenberg.git","svn_url":"https://github.com/WordPress/gutenberg","homepage":"https://wordpress.org/plugins/gutenberg/","size":24250,"stargazers_count":3491,"watchers_count":3491,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":942,"mirror_url":null,"archived":false,"open_issues_count":1459,"license":{"key":"other","name":"NOASSERTION","spdx_id":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":942,"open_issues":1459,"watchers":3491,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/WordPress/gutenberg/pulls/8274"},"html":{"href":"https://github.com/WordPress/gutenberg/pull/8274"},"issue":{"href":"https://api.github.com/repos/WordPress/gutenberg/issues/8274"},"comments":{"href":"https://api.github.com/repos/WordPress/gutenberg/issues/8274/comments"},"review_comments":{"href":"https://api.github.com/repos/WordPress/gutenberg/pulls/8274/comments"},"review_comment":{"href":"https://api.github.com/repos/WordPress/gutenberg/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/WordPress/gutenberg/pulls/8274/commits"},"statuses":{"href":"https://api.github.com/repos/WordPress/gutenberg/statuses/0064e214bf13dc31294637510134d3167bfd6a05"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"brandonpayton"}}