[wp-trac] [WordPress Trac] #33709: Deprecate wp_get_http()

WordPress Trac noreply at wordpress.org
Tue Sep 15 16:35:49 UTC 2015


#33709: Deprecate wp_get_http()
---------------------------------------------+-------------------------
 Reporter:  johnbillion                      |       Owner:  swissspidy
     Type:  defect (bug)                     |      Status:  closed
 Priority:  low                              |   Milestone:  4.4
Component:  HTTP API                         |     Version:  2.5
 Severity:  normal                           |  Resolution:  fixed
 Keywords:  good-first-bug has-patch commit  |     Focuses:
---------------------------------------------+-------------------------

Comment (by chris@…):

 I don't know the official status of the [https://wordpress.org/plugins
 /wordpress-importer/ WordPress Importer] plugin but it actually uses that
 function in wordpress-importer/wordpress-importer.php

 {{{
 // fetch the remote url and write it to the placeholder file
 $headers = wp_get_http( $url, $upload['file'] );

 // request failed
 if ( ! $headers ) {
     @unlink( $upload['file'] );
     return new WP_Error( 'import_file_error', __('Remote server did not
 respond', 'wordpress-importer') );
 }
 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/33709#comment:9>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list