Skip to:

Opened 10 years ago

Closed 10 years ago

Last modified 10 years ago

#5388 closed defect (bug) (fixed)

in WP 3.9 wpdb::prepare() will require a placeholder

Reported by: imath's profile imath Owned by: boonebgorges's profile boonebgorges
Milestone: 2.0 Priority: normal
Severity: normal Version:
Component: Core Keywords: has-patch


See ticket #25604

As a result, the query used in the function bp_update_meta_cache() generates a notice. I've attached a diff to escape the id_list instead of using wpdb::prepare()

Attachments (1)

5388.diff (789 bytes) - added by imath 10 years ago.

Download all attachments as: .zip

Change History (4)

10 years ago

#1 @boonebgorges
10 years ago

  • Milestone changed from Awaiting Review to 2.0

#2 @boonebgorges
10 years ago

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

In 7845:

Fix incorrect $wpdb->prepare() use in bp_update_meta_cache().

Fixes #5388

Props imath

#3 @johnjamesjacoby
10 years ago

In 8661:

Remove incorrect prepare() usage in get_current_threads_for_user(). See #5388.

Note: See TracTickets for help on using tickets.