{"action":"created","issue":{"url":"https://api.github.com/repos/WordPress/gutenberg/issues/2457","repository_url":"https://api.github.com/repos/WordPress/gutenberg","labels_url":"https://api.github.com/repos/WordPress/gutenberg/issues/2457/labels{/name}","comments_url":"https://api.github.com/repos/WordPress/gutenberg/issues/2457/comments","events_url":"https://api.github.com/repos/WordPress/gutenberg/issues/2457/events","html_url":"https://github.com/WordPress/gutenberg/issues/2457","id":251149358,"number":2457,"title":"Custom Post Types should have to declare Gutenberg Support","user":{"login":"mathetos","id":930724,"avatar_url":"https://avatars1.githubusercontent.com/u/930724?v=4","gravatar_id":"","url":"https://api.github.com/users/mathetos","html_url":"https://github.com/mathetos","followers_url":"https://api.github.com/users/mathetos/followers","following_url":"https://api.github.com/users/mathetos/following{/other_user}","gists_url":"https://api.github.com/users/mathetos/gists{/gist_id}","starred_url":"https://api.github.com/users/mathetos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mathetos/subscriptions","organizations_url":"https://api.github.com/users/mathetos/orgs","repos_url":"https://api.github.com/users/mathetos/repos","events_url":"https://api.github.com/users/mathetos/events{/privacy}","received_events_url":"https://api.github.com/users/mathetos/received_events","type":"User","site_admin":false},"labels":[{"id":631490822,"url":"https://api.github.com/repos/WordPress/gutenberg/labels/Extensibility","name":"Extensibility","color":"655104","default":false},{"id":562969841,"url":"https://api.github.com/repos/WordPress/gutenberg/labels/Framework","name":"Framework","color":"fbca04","default":false},{"id":681487500,"url":"https://api.github.com/repos/WordPress/gutenberg/labels/[Type]%20Plugin%20/%20Theme%20Conflict","name":"[Type] Plugin / Theme Conflict","color":"e99695","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/WordPress/gutenberg/milestones/39","html_url":"https://github.com/WordPress/gutenberg/milestone/39","labels_url":"https://api.github.com/repos/WordPress/gutenberg/milestones/39/labels","id":3168836,"number":39,"title":"Merge Proposal: REST API","description":"Tasks needed to be done around the REST API. This is a separate milestone because it should not depend on merge proposal.","creator":{"login":"mtias","id":548849,"avatar_url":"https://avatars2.githubusercontent.com/u/548849?v=4","gravatar_id":"","url":"https://api.github.com/users/mtias","html_url":"https://github.com/mtias","followers_url":"https://api.github.com/users/mtias/followers","following_url":"https://api.github.com/users/mtias/following{/other_user}","gists_url":"https://api.github.com/users/mtias/gists{/gist_id}","starred_url":"https://api.github.com/users/mtias/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mtias/subscriptions","organizations_url":"https://api.github.com/users/mtias/orgs","repos_url":"https://api.github.com/users/mtias/repos","events_url":"https://api.github.com/users/mtias/events{/privacy}","received_events_url":"https://api.github.com/users/mtias/received_events","type":"User","site_admin":false},"open_issues":23,"closed_issues":6,"state":"open","created_at":"2018-03-07T13:47:46Z","updated_at":"2018-04-26T01:19:18Z","due_on":null,"closed_at":null},"comments":26,"created_at":"2017-08-18T06:14:59Z","updated_at":"2018-04-26T06:53:18Z","closed_at":null,"author_association":"NONE","body":"## Issue Overview\r\n\r\nThis issue is primarily a Core issue for consideration when Gutenberg gets incorporated into WordPress Core. \r\n\r\nCustom Post Types should have to declare Gutenberg Support. Currently the \"Gutenberg\" link is added by default to all post types. Clicking on that link with a custom post type currently takes the user to an error page saying: \"No route was found matching the URL and request method\" -- a pretty terrible user experience.\r\n\r\n## Expected Behavior\r\nThe \"Gutenberg\" link should only appear on post types that have declared support for Gutenberg. If that is not there, then the post type edit screen will be loaded with the now current traditional edit screen.\r\n\r\n## Possible Solution\r\nAdd a new \"supports\" option when post types are registered, like so: \r\n\r\n```\r\n$args = array(\r\n\t\t'supports' => array( 'gutenberg', 'author', 'thumbnail', 'excerpt', 'comments' )\r\n\t);\r\n```\r\n\r\nThe default for \"supports\" should *NOT* include `'gutenberg'` so that it has to be intentionally declared since most post types that exist today will fail as-is.\r\n"},"comment":{"url":"https://api.github.com/repos/WordPress/gutenberg/issues/comments/384532993","html_url":"https://github.com/WordPress/gutenberg/issues/2457#issuecomment-384532993","issue_url":"https://api.github.com/repos/WordPress/gutenberg/issues/2457","id":384532993,"user":{"login":"pento","id":352291,"avatar_url":"https://avatars3.githubusercontent.com/u/352291?v=4","gravatar_id":"","url":"https://api.github.com/users/pento","html_url":"https://github.com/pento","followers_url":"https://api.github.com/users/pento/followers","following_url":"https://api.github.com/users/pento/following{/other_user}","gists_url":"https://api.github.com/users/pento/gists{/gist_id}","starred_url":"https://api.github.com/users/pento/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pento/subscriptions","organizations_url":"https://api.github.com/users/pento/orgs","repos_url":"https://api.github.com/users/pento/repos","events_url":"https://api.github.com/users/pento/events{/privacy}","received_events_url":"https://api.github.com/users/pento/received_events","type":"User","site_admin":false},"created_at":"2018-04-26T06:53:18Z","updated_at":"2018-04-26T06:53:18Z","author_association":"OWNER","body":"@maddisondesigns: No, adding that kind of UI isn't planned for the Classic Editor plugin. I understand that people may want to have more advanced UI control, we can certainly add any filters such a plugin would need to be able to create that."}}
{"actor":{"display_login":"pento"}}