Best WordPress Hosting
 

Postponed to WP 6.2: Escaping Table and Field names with wpdb::prepare()

Support for %i to escape Table and Field names was postponed to 6.2, see: Escaping Table and Field names with wpdb::prepare() in WordPress A problem was found during RC5, where some extensions use field LIKE “%%%s%%”, and expect the %s Continue reading Postponed to WP 6.2: Escaping Table and Field names with wpdb::prepare()

Escaping Table and Field names with wpdb::prepare() in WordPress 6.1

As part of the WordPress 6.1 release, wpdb::prepare() has been updated so it can escape Identifiers (such as Table and Field names) with the %i placeholder (#52506). This ensures these values are escaped correctly and don’t lead to SQL Injection Vulnerabilities. Continue reading Escaping Table and Field names with wpdb::prepare() in WordPress 6.1