[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 17:43:48 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:  low                            |   Milestone:  2.3
Component:  Forums                         |     Version:  1.1
 Severity:  major                          |  Resolution:
 Keywords:  needs-patch reporter-feedback  |
-------------------------------------------+------------------

Comment (by thebrandonallen):

 Just to throw this out there. This is one of many deprecation and PHP
 notices that show up with the legacy forums component. A good number of
 them are related to the bbPress 1.x branch. I say we either fix them all
 (which I'll be happy to work on), or leave them as-is. Unless, of course,
 they're bringing upon the wrath of the white screen.

 > Can you confirm that the retired forums still function with this change?
 I recall esc_sql() not being functionally equivalent to
 WPDB::escape_deep().

 They are functionally equivalent, but I haven't tested yet to be sure.

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


More information about the buddypress-trac mailing list