WordPress-Coding-Standards icon indicating copy to clipboard operation
WordPress-Coding-Standards copied to clipboard

Handbook: "Functions that update the database should expect their parameters to lack SQL slash escaping when passed."

Open jrfnl opened this issue 9 years ago • 0 comments

Ref: https://make.wordpress.org/core/handbook/best-practices/coding-standards/php/#formatting-sql-statements

We could possibly verify that variables passed to $wpdb->prepare() don't have a slashing function around it ?

Could possibly be added to the ~~WordPress.WP.PreparedSQL~~ WordPress.WP.PreparedSQLPlaceholders sniff.

jrfnl avatar Jul 28 '16 17:07 jrfnl