Make WordPress Core

Opened 9 years ago

Closed 9 years ago

#21400 closed defect (bug) (fixed)

comment_ID is misspelled in wp_set_wpdb_vars()

Reported by: wonderboymusic Owned by: ryan
Milestone: 3.5 Priority: normal
Severity: normal Version: 3.0
Component: Database Keywords: has-patch
Focuses: Cc:


I was doing some serious debugging of query formatting and noticed comment_ID always being formatted as %s.

Guess why? It's spelled with three (3) Ms = commment_ID in wp_set_wpdb_vars( ), meaning every insert or update without formatting explicitly passed is skipping $wpdb->field_types

Attachments (1)

comment-spelling.diff (997 bytes) - added by wonderboymusic 9 years ago.

Download all attachments as: .zip

Change History (4)

#1 @wonderboymusic
9 years ago

This is also fixed here: #19019

Last edited 9 years ago by SergeyBiryukov (previous) (diff)

#2 @SergeyBiryukov
9 years ago

  • Milestone changed from Awaiting Review to 3.5

#3 @ryan
9 years ago

  • Owner set to ryan
  • Resolution set to fixed
  • Status changed from new to closed

In [21363]:

Take the mmm out of comment_ID. Just mm is sufficient.

Props wonderboymusic
fixes #21400

Note: See TracTickets for help on using tickets.