Make WordPress Core

Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

#34493 closed defect (bug) (fixed)

wp_handle_comment_submission() does not set the user_ID

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

Description

Hi,

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 11 years ago.

Download all attachments as: .zip

Change History (5)

#1 @SergeyBiryukov
11 years ago

  • Milestone Awaiting Review → 4.4

#2 @johnbillion
11 years ago

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

#3 @johnbillion
11 years ago

  • Resolution → fixed
  • Status reviewing → 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
11 years ago

#34589 was marked as a duplicate.

Note: See TracTickets for help on using tickets.