Title: Updated deprecated function WPDB::escape
Last modified: August 21, 2016

---

# Updated deprecated function WPDB::escape

 *  [gpspake](https://wordpress.org/support/users/gpspake/)
 * (@gpspake)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/updated-deprecated-function-wpdbescape/)
 * [https://github.com/gpspake/404-redirected/commit/a1240c2f0ee379f7e2550c979d3839b4b9399895](https://github.com/gpspake/404-redirected/commit/a1240c2f0ee379f7e2550c979d3839b4b9399895)
 * WPDB::escape has been deprecated for security reasons. More information
    here:
   [http://wordpress.org/support/topic/wordpress-36-rc2-last-minute-wpdbescape-deprecation-is-not-nice](http://wordpress.org/support/topic/wordpress-36-rc2-last-minute-wpdbescape-deprecation-is-not-nice)
 * 404 Redirected was throwing the following:
    Notice: wpdb::escape is deprecated
   since version 3.6! Use wpdb::prepare() or esc_sql() instead. in /var/www/html/
   wp-includes/functions.php on line 2919
 * Replaced all instances of ‘wpdb->escape’ with ‘esc_sql’ as suggested.
    Since 
   this is a pretty straight forward matter of replacing one escape function with
   another, there shouldn’t be any issues, but based on some light testing, the 
   plugin seems to be working properly and the notice is gone.
 * [http://wordpress.org/plugins/404-redirected/](http://wordpress.org/plugins/404-redirected/)

Viewing 1 replies (of 1 total)

 *  [Jan Teriete](https://wordpress.org/support/users/leisurelarry/)
 * (@leisurelarry)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/updated-deprecated-function-wpdbescape/#post-4483236)
 * Thanks for your work 🙂

Viewing 1 replies (of 1 total)

The topic ‘Updated deprecated function WPDB::escape’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/404-redirected.svg)
 * [Redirectioner](https://wordpress.org/plugins/404-redirected/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/404-redirected/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/404-redirected/)
 * [Active Topics](https://wordpress.org/support/plugin/404-redirected/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/404-redirected/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/404-redirected/reviews/)

## Tags

 * [wpdb::escape](https://wordpress.org/support/topic-tag/wpdbescape/)

 * 1 reply
 * 2 participants
 * Last reply from: [Jan Teriete](https://wordpress.org/support/users/leisurelarry/)
 * Last activity: [12 years, 2 months ago](https://wordpress.org/support/topic/updated-deprecated-function-wpdbescape/#post-4483236)
 * Status: not resolved