Skip to content

Instantly share code, notes, and snippets.

@yllus
Created August 22, 2013 16:37
Show Gist options
  • Save yllus/6309667 to your computer and use it in GitHub Desktop.
Save yllus/6309667 to your computer and use it in GitHub Desktop.
// Workaround for a WordPress v3.5.2 change that blocks internal IP addresses (see http://core.trac.wordpress.org/ticket/24646 ).
add_filter( 'http_request_args', function( $args ) {
$args['reject_unsafe_urls'] = false;
return $args;
} );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment