WordPress.org

Make WordPress Core

Opened 2 years ago

Last modified 2 months ago

#23931 new defect (bug)

wp_insert_comment should require comment_post_ID — at Initial Version

Reported by: markoheijnen Owned by:
Milestone: Future Release Priority: normal
Severity: normal Version: 2.0
Component: Comments Keywords: has-patch needs-testing dev-feedback
Focuses: Cc:

Description

At this moment there is no check for example comment_post_ID. Not sure if there are more checks needed. Reason I asked are a few notices on the unit tests caused by WP_UnitTest_Factory_For_Comment. Those comments don't add a post ID what should change.

Change History (0)

Note: See TracTickets for help on using tickets.