WordPress.org

Make WordPress Core

#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:

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 21 months ago.

Download all attachments as: .zip

Change History (4)

comment:1 wonderboymusic21 months ago

This is also fixed here: #19019

Last edited 21 months ago by SergeyBiryukov (previous) (diff)

comment:2 SergeyBiryukov21 months ago

  • Milestone changed from Awaiting Review to 3.5

comment:3 ryan21 months 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.