From 93a17f984c13a5a6ca97dc40e95858969a201289 Mon Sep 17 00:00:00 2001 From: Yahnis Elsts Date: Mon, 14 Oct 2024 19:26:28 +0300 Subject: [PATCH] Minor: Suppress phpcs warning about changing HTTP request timeouts. This code doesn't actually modify timeouts. --- Puc/v5p4/UpdateChecker.php | 1 + 1 file changed, 1 insertion(+) diff --git a/Puc/v5p4/UpdateChecker.php b/Puc/v5p4/UpdateChecker.php index f9f39fa..f256c2f 100644 --- a/Puc/v5p4/UpdateChecker.php +++ b/Puc/v5p4/UpdateChecker.php @@ -172,6 +172,7 @@ if ( !class_exists(UpdateChecker::class, false) ): add_filter('http_request_host_is_external', array($this, 'allowMetadataHost'), 10, 2); //Potentially exclude information about this entity from core update check requests to api.wordpress.org. + //phpcs:ignore WordPressVIPMinimum.Hooks.RestrictedHooks.http_request_args -- Doesn't modify timeouts. add_filter('http_request_args', array($this, 'excludeEntityFromWordPressAPI'), 10, 2); //DebugBar integration.