Changeset 24917 for trunk/wp-includes/class-oembed.php
- Timestamp:
- 07/31/2013 06:52:13 AM (12 years ago)
- File:
-
- 1 edited
-
trunk/wp-includes/class-oembed.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/class-oembed.php
r24902 r24917 114 114 115 115 // Fetch URL content 116 if ( $html = wp_remote_retrieve_body( wp_ remote_get( $url, array( 'reject_unsafe_urls' => true )) ) ) {116 if ( $html = wp_remote_retrieve_body( wp_safe_remote_get( $url ) ) ) { 117 117 118 118 // <link> types that contain oEmbed provider URLs … … 196 196 function _fetch_with_format( $provider_url_with_args, $format ) { 197 197 $provider_url_with_args = add_query_arg( 'format', $format, $provider_url_with_args ); 198 $response = wp_ remote_get( $provider_url_with_args, array( 'reject_unsafe_urls' => true ));198 $response = wp_safe_remote_get( $provider_url_with_args ); 199 199 if ( 501 == wp_remote_retrieve_response_code( $response ) ) 200 200 return new WP_Error( 'not-implemented' );
Note: See TracChangeset
for help on using the changeset viewer.