PluginProbe
Imagify Image Optimization: Optimize Images | Compress & Convert to WebP/AVIF / trunk
Imagify Image Optimization: Optimize Images | Compress & Convert to WebP/AVIF vtrunk
2.3.4 2.3.3 2.3.2 2.3.1 2.3.0 2.2.9 2.2.8 trunk 1.10 1.3.3 1.3.4 1.3.5 1.3.5.1 1.3.5.2 1.3.6 1.3.6.1 1.4 1.4.1 1.4.2 1.4.3 1.4.4 1.4.5 1.4.6 1.4.7 1.5 All 103 releases
imagify / patches / wordpress / mcp-adapter / fix-static-trait-call.patch

fix-static-trait-call.patch in Imagify Image Optimization: Optimize Images | Compress & Convert to WebP/AVIF trunk, at patches/wordpress/mcp-adapter/fix-static-trait-call.patch

22 lines 1.0 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 --- a/includes/Transport/Infrastructure/RequestRouter.php
2 +++ b/includes/Transport/Infrastructure/RequestRouter.php
3 @@ -10,7 +10,7 @@
4 namespace WP\MCP\Transport\Infrastructure;
5
6 use WP\MCP\Infrastructure\ErrorHandling\McpErrorFactory;
7 -use WP\MCP\Infrastructure\Observability\McpObservabilityHelperTrait;
8 +use WP\MCP\Infrastructure\Observability\ErrorLogMcpObservabilityHandler;
9 use WP\McpSchema\Common\AbstractDataTransferObject;
10 use WP\McpSchema\Common\Content\DTO\TextContent;
11 use WP\McpSchema\Common\JsonRpc\DTO\JSONRPCErrorResponse;
12 @@ -289,7 +289,8 @@
13 // Filter argument keys to exclude sensitive-looking ones.
14 $safe_keys = array();
15 foreach ( array_keys( $params['arguments'] ) as $arg_key ) {
16 - if ( McpObservabilityHelperTrait::is_sensitive_key( (string) $arg_key ) ) {
17 + // @todo Replace this with a less-coupled way to access `McpObservabilityHelperTrait:is_sensitive_key()`.
18 + if ( ErrorLogMcpObservabilityHandler::is_sensitive_key( (string) $arg_key ) ) {
19 $safe_keys[] = '[REDACTED]';
20 } else {
21 $safe_keys[] = $arg_key;
22