[wp-trac] [WordPress Trac] #61751: Custom post type editor working

WordPress Trac noreply at wordpress.org
Thu Jul 25 13:30:03 UTC 2024


#61751: Custom post type editor working
---------------------------+-----------------------------------------
 Reporter:  karan4word     |       Owner:  (none)
     Type:  defect (bug)   |      Status:  new
 Priority:  normal         |   Milestone:  Awaiting Review
Component:  Editor         |     Version:  6.6.1
 Severity:  blocker        |  Resolution:
 Keywords:  needs-testing  |     Focuses:  javascript, administration
---------------------------+-----------------------------------------

Comment (by Mamaduka):

 The error is probably coming from this line -
 https://github.com/WordPress/gutenberg/blob/3336ee9bc3490dee6d6d843a8a83229df33bfccd/packages/editor/src/store
 /private-selectors.js#L113.

 @karan4word, it looks like your custom post types defines `menu_icon`
 property that isn't string.

 Can you run following code in DevTools console, when error occurs and
 share the returned object?


 {{{
 wp.data.select( 'core' ).getPostType( wp.data.select( 'core/editor'
 ).getCurrentPostType() );
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/61751#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list