Changeset 17928 for trunk/wp-includes/functions.php
- Timestamp:
- 05/14/2011 07:45:07 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/functions.php
r17841 r17928 601 601 wp_protect_special_option( $option ); 602 602 603 /* 603 /* 604 604 * FIXME the next two lines of code are not necessary and should be removed. 605 605 * @see http://core.trac.wordpress.org/ticket/13480 … … 1306 1306 1307 1307 $headers = wp_remote_retrieve_headers( $response ); 1308 $headers['response'] = $response['response']['code'];1308 $headers['response'] = wp_remote_retrieve_response_code( $response ); 1309 1309 1310 1310 // WP_HTTP no longer follows redirects for HEAD requests. … … 1321 1321 return $headers; 1322 1322 1323 fwrite( $out_fp, $response['body']);1323 fwrite( $out_fp, wp_remote_retrieve_body( $response ) ); 1324 1324 fclose($out_fp); 1325 1325 clearstatcache(); … … 1557 1557 return false; 1558 1558 1559 return $response['body'];1559 return wp_remote_retrieve_body( $response ); 1560 1560 } 1561 1561 … … 2877 2877 * @param string|array $args Optional arguements to control behaviour. 2878 2878 */ 2879 function _xmlrpc_wp_die_handler( $message, $title = '', $args = array() ) { 2879 function _xmlrpc_wp_die_handler( $message, $title = '', $args = array() ) { 2880 2880 global $wp_xmlrpc_server; 2881 2881 $defaults = array( 'response' => 500 ); … … 2883 2883 $r = wp_parse_args($args, $defaults); 2884 2884 2885 if ( $wp_xmlrpc_server ) { 2886 $error = new IXR_Error( $r['response'] , $message); 2887 $wp_xmlrpc_server->output( $error->getXml() ); 2885 if ( $wp_xmlrpc_server ) { 2886 $error = new IXR_Error( $r['response'] , $message); 2887 $wp_xmlrpc_server->output( $error->getXml() ); 2888 2888 } 2889 2889 die(); … … 2892 2892 /** 2893 2893 * Filter to enable special wp_die handler for xmlrpc requests. 2894 * 2894 * 2895 2895 * @since 3.2.0 2896 2896 * @access private 2897 2897 */ 2898 function _xmlrpc_wp_die_filter() { 2898 function _xmlrpc_wp_die_filter() { 2899 2899 return '_xmlrpc_wp_die_handler'; 2900 2900 }
Note: See TracChangeset
for help on using the changeset viewer.