Ticket #17724: 17724.diff
| File 17724.diff, 3.4 KB (added by , 15 years ago) |
|---|
-
wp-includes/class-http.php
76 76 * 77 77 * @param string $url URI resource. 78 78 * @param str|array $args Optional. Override the defaults. 79 * @return array|object Array containing 'headers', 'body', 'response', 'cookies' . A WP_Error instance upon error79 * @return array|object Array containing 'headers', 'body', 'response', 'cookies', 'filename'. A WP_Error instance upon error 80 80 */ 81 81 function request( $url, $args = array() ) { 82 82 global $wp_version; … … 238 238 * 239 239 * @param string $url URL to Request 240 240 * @param array $args Request arguments 241 * @return array|object Array containing 'headers', 'body', 'response', 'cookies' . A WP_Error instance upon error241 * @return array|object Array containing 'headers', 'body', 'response', 'cookies', 'filename'. A WP_Error instance upon error 242 242 */ 243 243 private function _dispatch_request( $url, $args ) { 244 244 static $transports = array(); … … 271 271 * 272 272 * @param string $url URI resource. 273 273 * @param str|array $args Optional. Override the defaults. 274 * @return array|object Array containing 'headers', 'body', 'response', 'cookies' . A WP_Error instance upon error274 * @return array|object Array containing 'headers', 'body', 'response', 'cookies', 'filename'. A WP_Error instance upon error 275 275 */ 276 276 function post($url, $args = array()) { 277 277 $defaults = array('method' => 'POST'); … … 289 289 * 290 290 * @param string $url URI resource. 291 291 * @param str|array $args Optional. Override the defaults. 292 * @return array|object Array containing 'headers', 'body', 'response', 'cookies' . A WP_Error instance upon error292 * @return array|object Array containing 'headers', 'body', 'response', 'cookies', 'filename'. A WP_Error instance upon error 293 293 */ 294 294 function get($url, $args = array()) { 295 295 $defaults = array('method' => 'GET'); … … 307 307 * 308 308 * @param string $url URI resource. 309 309 * @param str|array $args Optional. Override the defaults. 310 * @return array|object Array containing 'headers', 'body', 'response', 'cookies' . A WP_Error instance upon error310 * @return array|object Array containing 'headers', 'body', 'response', 'cookies', 'filename'. A WP_Error instance upon error 311 311 */ 312 312 function head($url, $args = array()) { 313 313 $defaults = array('method' => 'HEAD'); … … 561 561 * @access public 562 562 * @param string $url URI resource. 563 563 * @param str|array $args Optional. Override the defaults. 564 * @return array 'headers', 'body', ' cookies' and 'response' keys.564 * @return array 'headers', 'body', 'response', 'cookies' and 'filename' keys. 565 565 */ 566 566 function request($url, $args = array()) { 567 567 $defaults = array( … … 792 792 * 793 793 * @param string $url 794 794 * @param str|array $args Optional. Override the defaults. 795 * @return array 'headers', 'body', ' cookies' and 'response' keys.795 * @return array 'headers', 'body', 'response', 'cookies' and 'filename' keys. 796 796 */ 797 797 function request($url, $args = array()) { 798 798 $defaults = array( … … 982 982 * 983 983 * @param string $url 984 984 * @param str|array $args Optional. Override the defaults. 985 * @return array 'headers', 'body', ' cookies' and 'response' keys.985 * @return array 'headers', 'body', 'response', 'cookies' and 'filename' keys. 986 986 */ 987 987 function request($url, $args = array()) { 988 988 $defaults = array(
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)