From 1973d8df07e1e8f3d9bc20b48c1435226fdffa7e Mon Sep 17 00:00:00 2001 From: Rami Yushuvaev Date: Sat, 2 May 2026 11:46:24 +0300 Subject: [PATCH] Fix: add PHPCS ignore for direct database query caching in REST API test --- tests/phpunit/test-rest-api-snippets-shared-network-toggle.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/phpunit/test-rest-api-snippets-shared-network-toggle.php b/tests/phpunit/test-rest-api-snippets-shared-network-toggle.php index 62676503..04995124 100644 --- a/tests/phpunit/test-rest-api-snippets-shared-network-toggle.php +++ b/tests/phpunit/test-rest-api-snippets-shared-network-toggle.php @@ -167,7 +167,7 @@ protected function read_ms_active_column( int $snippet_id ): ?string { global $wpdb; $table = code_snippets()->db->ms_table; - $value = $wpdb->get_var( + $value = $wpdb->get_var( // phpcs:ignore WordPress.DB.DirectDatabaseQuery.NoCaching $wpdb->prepare( "SELECT active FROM {$table} WHERE id = %d", $snippet_id ) );