$wpdb->escape causing a NOTICE
-
My WP has
define('WP_DEBUG', true)
. Updating WP to version 3.6 caused a NOTICE due towpdb::escape
being deprecated. According to https://goo.gl/06dSwl “wpdb::escape()
performs weak escaping andesc_sql()
was updated to do ‘real’ escaping”. I found occurrences of$wpdb->escape
in secure.php and process.php . Is it safe for me to perform a search and replace changing$wpdb->escape
toesc_sql()
or$wpdb->prepare
?In addition: Today I just updated WP to version 3.6 and problems emerged. I believe some of them were caused by better-wp-security. I had to set
define('WP_DEBUG', false)
in order to complete the update.
- The topic ‘$wpdb->escape causing a NOTICE’ is closed to new replies.