Make WordPress Core


Ignore:
Timestamp:
07/31/2013 06:53:06 AM (11 years ago)
Author:
nacin
Message:

Use wp_safe_remote_request() and friends instead of reject_unsafe_urls = true.

Merges [24917] to the 3.6 branch.
fixes #24646.

Location:
branches/3.6
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/3.6

  • branches/3.6/wp-includes/functions.php

    r24782 r24918  
    497497    $options = array();
    498498    $options['redirection'] = 5;
    499     $options['reject_unsafe_urls'] = true;
    500499
    501500    if ( false == $file_path )
     
    504503        $options['method'] = 'GET';
    505504
    506     $response = wp_remote_request($url, $options);
     505    $response = wp_safe_remote_request( $url, $options );
    507506
    508507    if ( is_wp_error( $response ) )
     
    545544        _deprecated_argument( __FUNCTION__, '2.7' );
    546545
    547     $response = wp_remote_head( $url, array( 'reject_unsafe_urls' => true ) );
     546    $response = wp_safe_remote_head( $url );
    548547
    549548    if ( is_wp_error( $response ) )
     
    760759    $options = array();
    761760    $options['timeout'] = 10;
    762     $options['reject_unsafe_urls'] = true;
    763 
    764     $response = wp_remote_get( $uri, $options );
     761
     762    $response = wp_safe_remote_get( $uri, $options );
    765763
    766764    if ( is_wp_error( $response ) )
Note: See TracChangeset for help on using the changeset viewer.