[wp-trac] [WordPress Trac] #60947: calling get_post_type_object in wp-admin/includes/post.php may return null

WordPress Trac noreply at wordpress.org
Mon Aug 12 16:49:02 UTC 2024


#60947: calling get_post_type_object in wp-admin/includes/post.php may return null
-------------------------------+------------------------------
 Reporter:  pcarvalho          |       Owner:  (none)
     Type:  defect (bug)       |      Status:  new
 Priority:  normal             |   Milestone:  Awaiting Review
Component:  Posts, Post Types  |     Version:  6.6
 Severity:  minor              |  Resolution:
 Keywords:                     |     Focuses:
-------------------------------+------------------------------

Comment (by lalopanjo):

 update theme or reinstall theme

 {{{
 $sendback_text = get_post_type_object( $post->post_type
 )->labels->all_items;
 }}}

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


More information about the wp-trac mailing list