Make WordPress Core

Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#34493 closed defect (bug) (fixed)

wp_handle_comment_submission() does not set the user_ID

Reported by: imath's profile imath Owned by: johnbillion's profile johnbillion
Milestone: 4.4 Priority: high
Severity: normal Version: 4.4
Component: Comments Keywords: has-patch needs-unit-tests
Focuses: Cc:



When a logged in user post a comment, the user_id field of the $wpdb->comments table is never populated, although it was the case before the introduction of the function wp_handle_comment_submission() since [34799]

Applying the attached patch is fixing the issue.

Attachments (1)

34493.patch (692 bytes) - added by imath 9 years ago.

Download all attachments as: .zip

Change History (5)

9 years ago

#1 @SergeyBiryukov
9 years ago

  • Milestone changed from Awaiting Review to 4.4

#2 @johnbillion
9 years ago

  • Keywords has-patch needs-unit-tests added
  • Owner set to johnbillion
  • Priority changed from normal to high
  • Status changed from new to reviewing

#3 @johnbillion
9 years ago

  • Resolution set to fixed
  • Status changed from reviewing to closed

In 35435:

Correctly populate the user_id field for comments when a user submits a comment while logged in.

Props imath
Fixes #34493

#4 @SergeyBiryukov
9 years ago

#34589 was marked as a duplicate.

Note: See TracTickets for help on using tickets.