[wp-trac] [WordPress Trac] #47216: Block Editor crashes on custom post types without title support

WordPress Trac noreply at wordpress.org
Fri May 10 15:16:02 UTC 2019


#47216: Block Editor crashes on custom post types without title support
--------------------------+-----------------------------
 Reporter:  markjaquith   |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Editor        |    Version:
 Severity:  normal        |   Keywords:
  Focuses:  javascript    |
--------------------------+-----------------------------
 Create a custom post type that supports 'editor' but not 'title'. Save
 Draft. Reload the page. Crashes.

 {{{#!php
 <?php
 add_action( 'init', function () {
         register_post_type( 'movie',
                 [
                         'labels' => [
                                         'name' => 'Movies',
                                         'singular_name' => 'Movie',
                         ],
                         'public' => true,
                         'has_archive' => true,
                         'rewrite' => [
                                 'slug' => 'movies'
                         ],
                         'show_in_rest' => true,
                         'supports' => [
                                 //'title',
                                 'editor',
                         ],
                 ]
         );
 });
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/47216>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list