[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
Thu Aug 8 23:56:43 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 brianeharris):
What potential issues could arise if get_post_type_object returns null in
/wp-admin/includes/post.php, and how can this be safeguarded to prevent
errors?
--
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