Make WordPress Core

Opened 12 years ago

Closed 12 years ago

#21400 closed defect (bug) (fixed)

comment_ID is misspelled in wp_set_wpdb_vars()

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

Description

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

Download all attachments as: .zip

Change History (4)

#1 @wonderboymusic
12 years ago

This is also fixed here: #19019

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

#2 @SergeyBiryukov
12 years ago

  • Milestone changed from Awaiting Review to 3.5

#3 @ryan
12 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.