[wp-trac] [WordPress Trac] #16956: Comments Being Pulled from Non-Existent Post Types
WordPress Trac
wp-trac at lists.automattic.com
Mon Feb 20 05:46:36 UTC 2012
#16956: Comments Being Pulled from Non-Existent Post Types
------------------------------+------------------------------
Reporter: sterlo | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Warnings/Notices | Version: 3.1
Severity: normal | Resolution:
Keywords: |
------------------------------+------------------------------
Comment (by nacin):
> Maybe when get_post_type_object( $post->post_type ) returns null, add
'do_not_allow' to $caps and bail?
At the very least, we should be checking for a null value there, yes.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/16956#comment:4>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list