Opened 7 years ago
Last modified 9 days ago
#45164 reviewing enhancement
Added URL to error blocked requests
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Milestone: | 7.0 | Priority: | normal |
| Severity: | normal | Version: | 5.1 |
| Component: | HTTP API | Keywords: | has-patch |
| 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)
Change History (8)
#1
@
7 years ago
- Milestone changed from Awaiting Review to 5.1
- Owner set to SergeyBiryukov
- Status changed from new to reviewing
#3
@
2 years 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.
This ticket was mentioned in PR #9169 on WordPress/wordpress-develop by @sainathpoojary.
4 months ago
#4
- Keywords needs-refresh removed
Trac ticket: #45164
@pmbaldha commented on PR #9169:
4 months ago
#5
Nice! It looks good to me. Thanks!
@pmbaldha commented on PR #9169:
4 months ago
#6
Nice! It looks good to me. Thanks!
Thank you for this ticket, @wiuempe!
Could you please update the patch to user
sprintf()to insert the URL in the string?