[buddypress-trac] [BuddyPress] #5100: $wpdb->escape() deprecated in WordPress 3.6.

buddypress-trac noreply at wordpress.org
Fri Jul 19 11:46:37 UTC 2013

#5100: $wpdb->escape() deprecated in WordPress 3.6.
 Reporter:  johnjamesjacoby          |       Owner:
     Type:  defect (bug)             |      Status:  new
 Priority:  highest                  |   Milestone:  1.8.1
Component:  Core                     |     Version:  1.5
 Severity:  normal                   |  Resolution:
 Keywords:  needs-patch 2nd-opinion  |

Comment (by needle):

 I've created a patch for testing purposes, largely replacing
 `$wpdb->escape()` with `esc_sql()` except in 'bp-forums/bp-forums-
 functions.php' where a `$wpdb->prepare()` construction seemed more
 appropriate. Hope it helps - I'm finding having WP_DEBUG = true impossible
 now that the deprecated function warning is in place.

Ticket URL: <https://buddypress.trac.wordpress.org/ticket/5100#comment:1>
BuddyPress <http://buddypress.org/>

More information about the buddypress-trac mailing list