[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
Sun Aug 18 17:59:13 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 hredhd232):
There's no guard to check the return of get_post_type_object, going
straight to use labels and then all_items
--
Ticket URL: <https://core.trac.wordpress.org/ticket/60947#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list