Changeset 24918 for branches/3.6/wp-includes/functions.php
- Timestamp:
- 07/31/2013 06:53:06 AM (11 years ago)
- Location:
- branches/3.6
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.6
-
branches/3.6/wp-includes/functions.php
r24782 r24918 497 497 $options = array(); 498 498 $options['redirection'] = 5; 499 $options['reject_unsafe_urls'] = true;500 499 501 500 if ( false == $file_path ) … … 504 503 $options['method'] = 'GET'; 505 504 506 $response = wp_ remote_request($url, $options);505 $response = wp_safe_remote_request( $url, $options ); 507 506 508 507 if ( is_wp_error( $response ) ) … … 545 544 _deprecated_argument( __FUNCTION__, '2.7' ); 546 545 547 $response = wp_ remote_head( $url, array( 'reject_unsafe_urls' => true ));546 $response = wp_safe_remote_head( $url ); 548 547 549 548 if ( is_wp_error( $response ) ) … … 760 759 $options = array(); 761 760 $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 ); 765 763 766 764 if ( is_wp_error( $response ) )
Note: See TracChangeset
for help on using the changeset viewer.