Changeset 13422 for trunk/wp-includes/class-http.php
- Timestamp:
- 02/26/2010 12:37:20 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/class-http.php
r13377 r13422 539 539 * prevent plugins from working and core functionality, if you don't include api.wordpress.org. 540 540 * 541 * You block external URL requests by defining WP_HTTP_BLOCK_EXTERNAL in your wp-config.php file542 * and this will only allow localhost and your blog to make requests. The constant541 * You block external URL requests by defining WP_HTTP_BLOCK_EXTERNAL as true in your wp-config.php 542 * file and this will only allow localhost and your blog to make requests. The constant 543 543 * WP_ACCESSIBLE_HOSTS will allow additional hosts to go through for requests. The format of the 544 544 * WP_ACCESSIBLE_HOSTS constant is a comma separated list of hostnames to allow. … … 552 552 function block_request($uri) { 553 553 // We don't need to block requests, because nothing is blocked. 554 if ( ! defined( 'WP_HTTP_BLOCK_EXTERNAL') || ( defined('WP_HTTP_BLOCK_EXTERNAL') && WP_HTTP_BLOCK_EXTERNAL == false ))554 if ( ! defined( 'WP_HTTP_BLOCK_EXTERNAL' ) || ! WP_HTTP_BLOCK_EXTERNAL ) 555 555 return false; 556 556
Note: See TracChangeset
for help on using the changeset viewer.