Minor: Suppress phpcs warning about changing HTTP request timeouts.

This code doesn't actually modify timeouts.
This commit is contained in:
Yahnis Elsts 2024-10-14 19:26:28 +03:00
parent 7c907e7629
commit 93a17f984c
1 changed files with 1 additions and 0 deletions

View File

@ -172,6 +172,7 @@ if ( !class_exists(UpdateChecker::class, false) ):
add_filter('http_request_host_is_external', array($this, 'allowMetadataHost'), 10, 2); 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. //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); add_filter('http_request_args', array($this, 'excludeEntityFromWordPressAPI'), 10, 2);
//DebugBar integration. //DebugBar integration.