Make WordPress Core

Opened 3 years ago

Last modified 3 years ago

#17714 new defect (bug)

Comment/pingback handlers don't check whether the post type supports comments

Reported by: solarissmoke Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 3.1
Component: Comments Keywords: 2nd-opinion
Focuses: Cc:


wp-comments-post and XML-RPC don't check post type support for comments before accepting them - I think they should. We can't rely solely on $post->comment_status because that may not always be set to "closed" even if the post type doesn't support comments (see also #13473)

Maybe we could add a check to comments_open()?

Change History (1)

comment:1 nacin3 years ago

Would require #17568.

I don't know if the lack of a supported UI for comments (which is what 'supports' means across the board) means that wp-comments-post.php should not be able to accept comments.

Note: See TracTickets for help on using tickets.