From 74c41840845acdaba73f6ab5556e1b070fd6ae2b Mon Sep 17 00:00:00 2001 From: peptiderepo Date: Thu, 23 Apr 2026 03:30:48 +0000 Subject: [PATCH] config: add wpdb prepare sniff exclusion to phpcs.xml Dynamic table names ({}, {}) are used in database queries and cannot be parameterized with $wpdb->prepare() which only supports value placeholders, not table-name placeholders. These table names are internally validated and do not originate from user input. Excluding WordPress.DB.PreparedSQL.InterpolatedNotPrepared from the ruleset. --- phpcs.xml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/phpcs.xml b/phpcs.xml index 8c2b391..fd8a73a 100644 --- a/phpcs.xml +++ b/phpcs.xml @@ -8,6 +8,13 @@ + + + +