Make WordPress Core


Ignore:
Timestamp:
07/30/2013 06:41:03 PM (12 years ago)
Author:
nacin
Message:

Introduce wp_safe_remote_request(). Also wp_safe_remote_head(), wp_safe_remote_get(), wp_safe_remote_post().

Reverts [24482].

Merges [24894] and [24895] to the 3.6 branch.

see #24646.

Location:
branches/3.6
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/3.6

  • branches/3.6/wp-includes/class-http.php

    r24767 r24896  
    8888            'httpversion' => apply_filters( 'http_request_version', '1.0'),
    8989            'user-agent' => apply_filters( 'http_headers_useragent', 'WordPress/' . $wp_version . '; ' . get_bloginfo( 'url' ) ),
    90             'reject_unsafe_urls' => apply_filters( 'http_request_reject_unsafe_urls', true ),
     90            'reject_unsafe_urls' => apply_filters( 'http_request_reject_unsafe_urls', false ),
    9191            'blocking' => true,
    9292            'headers' => array(),
Note: See TracChangeset for help on using the changeset viewer.