diff --git a/includes/Classifai/Providers/Azure/ComputerVision.php b/includes/Classifai/Providers/Azure/ComputerVision.php index 85c2ef12f..fef836a09 100644 --- a/includes/Classifai/Providers/Azure/ComputerVision.php +++ b/includes/Classifai/Providers/Azure/ComputerVision.php @@ -749,7 +749,7 @@ protected function prep_api_url( ?\Classifai\Features\Feature $feature = null ): protected function authenticate_credentials( string $url, string $api_key ) { $rtn = false; $request = wp_remote_post( - trailingslashit( $url ) . $this->analyze_url . '&features=caption', + add_query_arg( 'features', 'caption', trailingslashit( $url ) . $this->analyze_url ), [ 'headers' => [ 'Ocp-Apim-Subscription-Key' => $api_key,