[buddypress-trac] [BuddyPress Trac] #6157: Notice: wpdb::escape is deprecated since version 3.6! Use wpdb::prepare() or esc_sql() instead.

buddypress-trac noreply at wordpress.org
Thu Jan 22 16:47:03 UTC 2015


#6157: Notice: wpdb::escape is deprecated since version 3.6! Use wpdb::prepare()
or esc_sql() instead.
--------------------------+------------------------------
 Reporter:  spenser4551   |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Forums        |     Version:  2.0.3
 Severity:  normal        |  Resolution:
 Keywords:  needs-patch   |
--------------------------+------------------------------

Comment (by spenser4551):

 Change to:
 {{{
 function escape_deep( $data ) {
     return esc_sql( $data );
 }
 }}}

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


More information about the buddypress-trac mailing list