Make WordPress Core

Opened 7 years ago

Last modified 17 months ago

#45164 reviewing enhancement

Added URL to error blocked requests

Reported by: wiuempe's profile wiuempe Owned by: sergeybiryukov's profile SergeyBiryukov
Milestone: Future Release Priority: normal
Severity: normal Version: 5.1
Component: HTTP API Keywords: has-patch needs-refresh
Focuses: Cc:

Description

Hello, i have set in wp-config.php:

define( 'WP_HTTP_BLOCK_EXTERNAL', true );
define( 'WP_ACCESSIBLE_HOSTS', 'api.wordpress.org,downloads.wordpress.org' );

When i installed plugin which need make request, i have error: "User has blocked requests through HTTP.". If i want to add this host to whitelist, i dont know which host i should add, so i change error communicate to print URL.

Attachments (1)

mypatch.diff (583 bytes) - added by wiuempe 7 years ago.

Download all attachments as: .zip

Change History (4)

@wiuempe
7 years ago

#1 @SergeyBiryukov
7 years ago

  • Milestone changed from Awaiting Review to 5.1
  • Owner set to SergeyBiryukov
  • Status changed from new to reviewing

#2 @pento
6 years ago

  • Keywords needs-refresh added
  • Milestone changed from 5.1 to Future Release

Thank you for this ticket, @wiuempe!

Could you please update the patch to user sprintf() to insert the URL in the string?

#3 @maltfield
17 months ago

+1. Any status on this? I also use WP_HTTP_BLOCK_EXTERNAL, and it would be great if the logs would include the URL so that we could know which plugins/themes are making unwanted calls to their mothership.

Note: See TracTickets for help on using tickets.