[wp-trac] [WordPress Trac] #29619: Make WP_HTTP_BLOCK_EXTERNAL more easy to use
WordPress Trac
noreply at wordpress.org
Wed Sep 10 17:46:55 UTC 2014
#29619: Make WP_HTTP_BLOCK_EXTERNAL more easy to use
--------------------------+-----------------------------
Reporter: markoheijnen | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: HTTP API | Version: 2.8
Severity: normal | Keywords: dev-feedback
Focuses: |
--------------------------+-----------------------------
Currently when defining WP_HTTP_BLOCK_EXTERNAL it blocks all requests
which would mean that WordPress itself becomes unusable because it then
will also blocks it own requests to WordPress.org. Also oEmbeds stop
working because they can't get their data.
My idea is to make an if statement like the localhost check to allow those
requests. I do get that this constant is mainly for local development but
would be great to have a easy way to have a semi locked down installation.
So I'm curious what you guys think about this.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/29619>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list