Opened 2 years ago
Last modified 2 years ago
#17714 new defect (bug)
Comment/pingback handlers don't check whether the post type supports comments
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | Awaiting Review |
| Component: | Comments | Version: | 3.1 |
| Severity: | normal | Keywords: | 2nd-opinion |
| Cc: |
Description
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()?
Note: See
TracTickets for help on using
tickets.

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.