{"action":"opened","issue":{"url":"https://api.github.com/repos/WordPress/gutenberg/issues/12442","repository_url":"https://api.github.com/repos/WordPress/gutenberg","labels_url":"https://api.github.com/repos/WordPress/gutenberg/issues/12442/labels{/name}","comments_url":"https://api.github.com/repos/WordPress/gutenberg/issues/12442/comments","events_url":"https://api.github.com/repos/WordPress/gutenberg/issues/12442/events","html_url":"https://github.com/WordPress/gutenberg/issues/12442","id":385852273,"node_id":"MDU6SXNzdWUzODU4NTIyNzM=","number":12442,"title":"Gutenberg editor shows blank screen fro custom post type","user":{"login":"theMikeD","id":423907,"node_id":"MDQ6VXNlcjQyMzkwNw==","avatar_url":"https://avatars3.githubusercontent.com/u/423907?v=4","gravatar_id":"","url":"https://api.github.com/users/theMikeD","html_url":"https://github.com/theMikeD","followers_url":"https://api.github.com/users/theMikeD/followers","following_url":"https://api.github.com/users/theMikeD/following{/other_user}","gists_url":"https://api.github.com/users/theMikeD/gists{/gist_id}","starred_url":"https://api.github.com/users/theMikeD/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/theMikeD/subscriptions","organizations_url":"https://api.github.com/users/theMikeD/orgs","repos_url":"https://api.github.com/users/theMikeD/repos","events_url":"https://api.github.com/users/theMikeD/events{/privacy}","received_events_url":"https://api.github.com/users/theMikeD/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-11-29T17:46:23Z","updated_at":"2018-11-29T17:46:23Z","closed_at":null,"author_association":"NONE","body":"**Describe the bug**\r\nA clear and concise description of what the bug is.\r\n\r\n**To Reproduce**\r\nSteps to reproduce the behavior:\r\n1. Install vanilla WP RC1 and the GB v 4.5.1 plugin\r\n2. Add the following to the functions.php of twentyseventeen theme\r\n\r\n<pre>\r\n// Register post type\r\n$labels = array(\r\n\t'name'               => _x( 'MD Stories', 'post type general name', 'feature-template' ),\r\n\t'singular_name'      => _x( 'MD Story', 'post type singular name', 'feature-template' ),\r\n\t'menu_name'          => _x( 'MD Stories', 'admin menu', 'feature-template' ),\r\n\t'name_admin_bar'     => _x( 'MD Story', 'add new on admin bar', 'feature-template' ),\r\n\t'add_new'            => _x( 'Add New', 'MD Story', 'feature-template' ),\r\n\t'add_new_item'       => __( 'Add New MD Story', 'feature-template' ),\r\n\t'new_item'           => __( 'New MD Story', 'feature-template' ),\r\n\t'edit_item'          => __( 'Edit MD Story', 'feature-template' ),\r\n\t'view_item'          => __( 'View MD Story', 'feature-template' ),\r\n\t'all_items'          => __( 'All MD Stories', 'feature-template' ),\r\n\t'search_items'       => __( 'Search MD Stories', 'feature-template' ),\r\n\t'parent_item_colon'  => __( 'Parent MD Stories:', 'feature-template' ),\r\n\t'not_found'          => __( 'No Custom MD found.', 'feature-template' ),\r\n\t'not_found_in_trash' => __( 'No Custom MD found in Trash.', 'feature-template' ),\r\n);\r\n\r\n$args = array(\r\n\t'labels'             => $labels,\r\n\t'public'             => true,\r\n\t'publicly_queryable' => true,\r\n\t'show_ui'            => true,\r\n\t'show_in_menu'       => true,\r\n\t'query_var'          => true,\r\n\t'rewrite'            => array( 'slug' => 'md-feature' ),\r\n\t'capability_type'    => 'post',\r\n\t'has_archive'        => true,\r\n\t'hierarchical'       => true,\r\n\t'menu_icon'\t\t\t => 'dashicons-schedule',\r\n\t'menu_position'      => 12,\r\n\t'supports'           => array( 'title', 'editor', 'revisions', 'author', 'thumbnail', 'excerpt', 'page-attributes' ),\r\n\t'taxonomies'\t\t => array( 'category', 'post_tag' ),\r\n);\r\n\r\nregister_post_type( 'mdtest', $args );\r\n\r\n\r\nadd_filter('gutenberg_can_edit_post_type', 'cnmd_enable_gutenberg_for_longform_cpt', 10, 2);\r\nadd_filter('use_block_editor_for_post_type', 'postmedia_enable_gutenberg_for_longform_cpt', 10, 2);\r\nfunction cnmd_enable_gutenberg_for_longform_cpt($current_status, $post_type) {\r\n\tif ($post_type === 'mdtest') {\r\n\t\treturn true;\r\n\t}\r\n    return $current_status;\r\n}\r\n</pre>\r\n\r\n3. Create a new post of this custom post type\r\n\r\n**Expected behavior**\r\nThe GB editor should be visible. Instead I get a white page. There is page src content and no script errors in the log, just nothing showing in the browser.\r\n\r\n\r\n**Desktop (please complete the following information):**\r\n - OS: macos sierra\r\n - Browser chrome\r\n - Version 70.0.3538.102\r\n\r\n\r\n"}}
{"actor":{"display_login":"theMikeD"}}