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/comment.php

    r24713 r24918  
    16591659        return false;
    16601660
    1661     $response = wp_remote_head( $url, array( 'timeout' => 2, 'httpversion' => '1.0', 'reject_unsafe_urls' => true ) );
     1661    $response = wp_safe_remote_head( $url, array( 'timeout' => 2, 'httpversion' => '1.0' ) );
    16621662
    16631663    if ( is_wp_error( $response ) )
     
    16721672
    16731673    // Now do a GET since we're going to look in the html headers (and we're sure it's not a binary file)
    1674     $response = wp_remote_get( $url, array( 'timeout' => 2, 'httpversion' => '1.0', 'reject_unsafe_urls' => true ) );
     1674    $response = wp_safe_remote_get( $url, array( 'timeout' => 2, 'httpversion' => '1.0' ) );
    16751675
    16761676    if ( is_wp_error( $response ) )
     
    19071907    $options = array();
    19081908    $options['timeout'] = 4;
    1909     $options['reject_unsafe_urls'] = true;
    19101909    $options['body'] = array(
    19111910        'title' => $title,
     
    19151914    );
    19161915
    1917     $response = wp_remote_post($trackback_url, $options);
     1916    $response = wp_safe_remote_post( $trackback_url, $options );
    19181917
    19191918    if ( is_wp_error( $response ) )
Note: See TracChangeset for help on using the changeset viewer.