Skip to content

Commit c3d1c5a

Browse files
committed
Limit error message to avoid too long messages
1 parent f864baf commit c3d1c5a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

wp-http-blocklist.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ function pre_http_request( $flag, $parsed_args, $url ) {
5757
foreach ( $blocklist as $blocklist_domain ) {
5858
if ( $request_host === $blocklist_domain ) {
5959
// translators: First is the host blocked, second is the full url called
60-
$response = new \WP_Error( 'http_request_blocked', sprintf( __( 'Host %1$s with URL %2$s is blocked from a deny list.', 'wp-http-blocklist' ), $request_host, $url ) );
60+
$response = new \WP_Error( 'http_request_blocked', sprintf( __( 'Host %1$s is blocked from a deny list.', 'wp-http-blocklist' ), $request_host ) );
6161
/** This action is documented in wp-includes/class-http.php */
6262
do_action( 'http_api_debug', $response, 'response', 'Requests', $parsed_args, $url );
6363

0 commit comments

Comments
 (0)