From 297ac68ba340c8e91fdd1006e0b7bdf22e8e9467 Mon Sep 17 00:00:00 2001 From: barthc Date: Thu, 18 Apr 2024 09:54:01 +0100 Subject: [PATCH] Feedback fixed --- class-gwiz-gf-openai.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/class-gwiz-gf-openai.php b/class-gwiz-gf-openai.php index 9ef8558..cf1b4b8 100644 --- a/class-gwiz-gf-openai.php +++ b/class-gwiz-gf-openai.php @@ -1358,7 +1358,7 @@ public function make_request( $endpoint, $body, $feed ) { $cache_key = sha1( serialize( array( 'url' => $url, - 'body' => map_deep( $body, 'sanitize_text_field' ), + 'body' => map_deep( $body, 'sanitize_text_field' ), // Sanitize the `$body` variable to ensure consistent `$cache_key` 'request_params' => $this->get_request_params( $feed ), ) ) );