WordPress.org

Make WordPress Core

Opened 12 months ago

Last modified 9 months ago

#45164 reviewing enhancement

Added URL to error blocked requests

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

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 12 months ago.

Download all attachments as: .zip

Change History (3)

@wiuempe
12 months ago

#1 @SergeyBiryukov
12 months ago

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

#2 @pento
9 months 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?

Note: See TracTickets for help on using tickets.